[MPlayer-dev-eng] [PATCH] Fix cut off last few seconds of a file

Mikulas Patocka mikulas at artax.karlin.mff.cuni.cz
Mon Aug 2 17:16:17 CEST 2004


Hi

When audio buffer is X seconds large and mplayer is playing audio-only
stream, it doesn't play last X seconds (it ends at the point when all the
stream is decoded, not at the point when sound card buffer is finished).
This patch fixes it.

Mikulas
-------------- next part --------------
--- MPLAYER.C~	2004-08-01 22:24:36.000000000 +0100
+++ mplayer.c	2004-08-02 04:36:24.000000000 +0100
@@ -2044,7 +2044,7 @@
 		    ,cache_fill_status
 		    );
   }
-  if(d_audio->eof) eof = PT_NEXT_ENTRY;
+  if(d_audio->eof && !audio_out->get_delay()) eof = PT_NEXT_ENTRY;
 
 } else {
 


More information about the MPlayer-dev-eng mailing list