0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

audio: simplify condition

The expression added with the previous commit (0cce8fe6) looked slightly
more complicated than it has to be. The code is equivalent.
This commit is contained in:
wm4 2014-07-31 21:11:49 +02:00
parent 0cce8fe64f
commit 4cf3f3ca2c

View File

@ -385,7 +385,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
// If audio is infinitely fast, somehow try keeping approximate A/V sync.
if (mpctx->audio_status == STATUS_PLAYING && ao_untimed(mpctx->ao) &&
!(mpctx->video_status == STATUS_EOF || mpctx->delay <= 0))
mpctx->video_status != STATUS_EOF && mpctx->delay > 0)
return;
// if paused, just initialize things (audio format & pts)