[vlc-commits] Enable seek base on PCR in the TS demuxer only when the stream can seek fast

Laurent Aimar git at videolan.org
Mon Oct 10 20:21:32 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Oct 10 20:20:59 2011 +0200| [0f68248fb1ec1fc4527e11323543140fc302e4e1] | committer: Laurent Aimar

Enable seek base on PCR in the TS demuxer only when the stream can seek fast

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

 modules/demux/ts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 5d43d02..482a13b 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -822,7 +822,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->p_pos = (int64_t *)calloc( p_sys->i_pcrs_num, sizeof( int64_t ) );
 
     bool can_seek = false;
-    stream_Control( p_demux->s, STREAM_CAN_SEEK, &can_seek );
+    stream_Control( p_demux->s, STREAM_CAN_FASTSEEK, &can_seek );
     if( can_seek  )
     {
         GetFirstPCR( p_demux );



More information about the vlc-commits mailing list