[vlc-commits] demux: ts: don't update last pts with dvb

Francois Cartegnie git at videolan.org
Wed Mar 15 16:00:28 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Mar 14 18:21:04 2017 +0100| [23b78e66c8fe8b3437b1001457da64f8e632c15c] | committer: Francois Cartegnie

demux: ts: don't update last pts with dvb

regression from growing files

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

 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 dcdf2fb..5fbdae2 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -2156,7 +2156,8 @@ static void ProgramSetPCR( demux_t *p_demux, ts_pmt_t *p_pmt, mtime_t i_pcr )
     {
         es_out_Control( p_demux->out, ES_OUT_SET_GROUP_PCR, p_pmt->i_number, FROM_SCALE(i_pcr) );
         /* growing files/named fifo handling */
-        if( vlc_stream_Tell( p_sys->stream ) > p_pmt->i_last_dts_byte )
+        if( p_sys->b_access_control == false &&
+            vlc_stream_Tell( p_sys->stream ) > p_pmt->i_last_dts_byte )
         {
             p_pmt->i_last_dts = i_pcr;
             p_pmt->i_last_dts_byte = vlc_stream_Tell( p_sys->stream );



More information about the vlc-commits mailing list