1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 04:45:33 +00:00

player: fix audio EOF check on --no-audio

This considered audio to never reach EOF when audio was disabled,
instead of always being EOF.
This commit is contained in:
wm4 2014-04-18 00:03:49 +02:00
parent 1b398e99f7
commit e6f4c50f46

View File

@ -1223,7 +1223,7 @@ void run_playloop(struct MPContext *mpctx)
* buffered.
*/
if ((mpctx->d_audio || mpctx->d_video) && !audio_left && !video_left
&& (opts->gapless_audio || (mpctx->d_audio && ao_eof_reached(mpctx->ao)))
&& (opts->gapless_audio || !mpctx->d_audio || ao_eof_reached(mpctx->ao))
&& (!mpctx->paused || was_restart)) {
if (end_is_chapter) {
mp_seek(mpctx, (struct seek_params){