From fe298bc2a571405f38343eb9c6280f694db49ffa Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 17 Apr 2014 22:45:49 +0200 Subject: 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. --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') 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){ -- cgit v1.2.3