Do not rebufferize when transcoding to a non real time output.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 12 Dec 2009 18:17:38 +0000 (19:17 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 12 Dec 2009 18:23:57 +0000 (19:23 +0100)
src/input/es_out.c

index 99b6059..02dc8b8 100644 (file)
@@ -2288,7 +2288,8 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
                     /* Check buffering state on master clock update */
                     EsOutDecodersStopBuffering( out, false );
                 }
-                else if( b_late )
+                else if( b_late && ( !out->b_sout ||
+                                     !p_sys->p_input->p->b_out_pace_control ) )
                 {
                     mtime_t i_pts_delay = input_clock_GetJitter( p_pgrm->p_clock );