[vlc-devel] commit: Don't do pts changes to telx blocks if we're not runing real time. (Antoine Cellerier )

git version control git at videolan.org
Fri May 23 16:39:26 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Fri May 23 16:40:19 2008 +0200| [f3d55b94c47dfc6a2b694e272b438b97b3a3a0a3]

Don't do pts changes to telx blocks if we're not runing real time.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f3d55b94c47dfc6a2b694e272b438b97b3a3a0a3
---

 src/input/es_out.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 336641b..509c42c 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -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




More information about the vlc-devel mailing list