[vlc-commits] demux:mkv: send a PCR reset when we switch to another segment during playback

Steve Lhomme git at videolan.org
Fri Apr 13 17:10:33 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Apr 13 17:10:15 2018 +0200| [4e6bdba314b65e5a783740741cd1d03a2a19db7d] | committer: Steve Lhomme

demux:mkv: send a PCR reset when we switch to another segment during playback

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

 modules/demux/mkv/virtual_segment.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/demux/mkv/virtual_segment.cpp b/modules/demux/mkv/virtual_segment.cpp
index cd8f7c1bda..adf8ea8e18 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -541,6 +541,10 @@ bool virtual_segment_c::Seek( demux_t & demuxer, mtime_t i_mk_date,
             }
             msg_Dbg( &demuxer, "SWITCH CHAPTER uid=%" PRId64, p_vchapter->p_chapter ? p_vchapter->p_chapter->i_uid : 0 );
             p_current_vchapter = p_vchapter;
+
+            /* only use for soft linking, hard linking should be continous */
+            es_out_Control( demuxer.out, ES_OUT_RESET_PCR );
+
             p_sys->PreparePlayback( *this, i_mk_date );
             return true;
         }



More information about the vlc-commits mailing list