From 4cf3f3ca2ccc05ae9525168182d068bfe743b03f Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 31 Jul 2014 21:11:49 +0200 Subject: audio: simplify condition The expression added with the previous commit (0cce8fe6) looked slightly more complicated than it has to be. The code is equivalent. --- player/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/audio.c b/player/audio.c index f23f6db5cc..46e59a3c9c 100644 --- a/player/audio.c +++ b/player/audio.c @@ -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) -- cgit v1.2.3