summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-31 21:11:49 +0200
committerwm4 <wm4@nowhere>2014-07-31 21:11:49 +0200
commit4cf3f3ca2ccc05ae9525168182d068bfe743b03f (patch)
tree2cd46715666e218c606e0320a07b1ae879aa29b9
parent0cce8fe64fda23e32a76e79965d6e0860cdbc7e2 (diff)
downloadmpv-4cf3f3ca2ccc05ae9525168182d068bfe743b03f.tar.bz2
mpv-4cf3f3ca2ccc05ae9525168182d068bfe743b03f.tar.xz
audio: simplify condition
The expression added with the previous commit (0cce8fe6) looked slightly more complicated than it has to be. The code is equivalent.
-rw-r--r--player/audio.c2
1 files changed, 1 insertions, 1 deletions
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)