Fixed buffering value for frame step.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 29 Nov 2008 00:36:05 +0000 (01:36 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 29 Nov 2008 09:46:21 +0000 (10:46 +0100)
src/input/es_out.c

index 13b41b9..0d6197c 100644 (file)
@@ -622,7 +622,7 @@ static void EsOutDecodersStopBuffering( es_out_t *out, bool b_forced )
 
     const mtime_t i_buffering_duration = p_sys->p_input->i_pts_delay +
                                          i_preroll_duration +
-                                         p_sys->i_buffering_extra_stream;
+                                         p_sys->i_buffering_extra_stream - p_sys->i_buffering_extra_initial;
 
     if( i_stream_duration <= i_buffering_duration && !b_forced )
     {