# HG changeset patch # User reimar # Date 1409477618 0 # Node ID 681c7f805a239c1ef34e19a102615d793a6c5602 # Parent 22355747d51f294708efb837a9b3cdcecce820bf Double-check that we are really at audio EOF by trying to refill. Somewhat improves trac #2196. diff -r 22355747d51f -r 681c7f805a23 mplayer.c --- a/mplayer.c Sat Aug 30 22:06:22 2014 +0000 +++ b/mplayer.c Sun Aug 31 09:33:38 2014 +0000 @@ -3823,7 +3823,7 @@ // Ensure vo_pts is updated so that ao_pcm will not hang. advance_timer(frame_time); // only stop playing when audio is at end as well - if (!mpctx->sh_audio || mpctx->d_audio->eof) + if (!mpctx->sh_audio || (mpctx->d_audio->eof && !ds_fill_buffer(mpctx->d_audio))) mpctx->eof = 1; } else { // might return with !eof && !blit_frame if !correct_pts