diff options
author | wm4 <wm4@nowhere> | 2014-04-17 22:45:49 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-17 22:45:49 +0200 |
commit | fe298bc2a571405f38343eb9c6280f694db49ffa (patch) | |
tree | 76a6e240aa51ee5e5afa9775ebd13f814b06e628 /player | |
parent | 1b92f3b47277f189646885c1757d424868a0da47 (diff) | |
download | mpv-fe298bc2a571405f38343eb9c6280f694db49ffa.tar.bz2 mpv-fe298bc2a571405f38343eb9c6280f694db49ffa.tar.xz |
audio: explicitly document audio EOF condition
This should probably be an AO function, but since the playloop still has
some strange stuff (using the buffered_audio variable instead of calling
ao_get_delay() directly), just leave it and make it more explicit.
Diffstat (limited to 'player')
-rw-r--r-- | player/playloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c index 2495579c39..61a2ac0c20 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -1219,7 +1219,7 @@ void run_playloop(struct MPContext *mpctx) * buffered. */ if ((mpctx->d_audio || mpctx->d_video) && !audio_left && !video_left - && (opts->gapless_audio || buffered_audio < 0.05) + && (opts->gapless_audio || buffered_audio < AO_EOF_DELAY) && (!mpctx->paused || was_restart)) { if (end_is_chapter) { mp_seek(mpctx, (struct seek_params){ |