Don't do pts changes to telx blocks if we're not runing real time.
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 23 May 2008 14:40:19 +0000 (16:40 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 23 May 2008 14:40:33 +0000 (16:40 +0200)
src/input/es_out.c

index 336641b..509c42c 100644 (file)
@@ -1403,7 +1403,8 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
         p_block->i_pts =
             input_ClockGetTS( p_input, &p_pgrm->clock, p_block->i_pts ) + i_delay;
     }
-    if ( es->fmt.i_codec == VLC_FOURCC( 't', 'e', 'l', 'x' ) )
+    if ( p_block->i_rate == INPUT_RATE_DEFAULT &&
+         es->fmt.i_codec == VLC_FOURCC( 't', 'e', 'l', 'x' ) )
     {
         mtime_t current_date = mdate();
         if( !p_block->i_pts