[vlc-commits] demux: ts: don't report length with seekpp

Francois Cartegnie git at videolan.org
Thu Nov 10 12:03:31 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Nov 10 11:50:32 2016 +0100| [7544870de6453c06b588874ac4c60d9bbece08bb] | committer: Francois Cartegnie

demux: ts: don't report length with seekpp

refs #17582

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

 modules/demux/mpeg/ts.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 20a22b9..d309809 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -983,7 +983,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
             }
         }
 
-        if( p_pmt &&
+        if( !p_sys->b_ignore_time_for_positions &&
+            p_pmt &&
            ( p_pmt->pcr.i_first > -1 || p_pmt->pcr.i_first_dts > VLC_TS_INVALID ) &&
              p_pmt->i_last_dts > 0 )
         {



More information about the vlc-commits mailing list