[vlc-devel] [PATCH 8/9] mkv: we don't need to prepare playback when jumping from Chapter commands

Steve Lhomme robux4 at videolabs.io
Thu Mar 17 16:53:07 CET 2016


it is done in the Seek with the provided virtual_chapter
---
 modules/demux/mkv/demux.cpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/demux/mkv/demux.cpp b/modules/demux/mkv/demux.cpp
index 3d9bd45..ca50504 100644
--- a/modules/demux/mkv/demux.cpp
+++ b/modules/demux/mkv/demux.cpp
@@ -806,12 +806,6 @@ bool demux_sys_t::PreparePlayback( virtual_segment_c & new_vsegment, mtime_t i_m
 
 void demux_sys_t::JumpTo( virtual_segment_c & vsegment, virtual_chapter_c & vchapter )
 {
-    // if the segment is not part of the current segment, select the new one
-    if ( &vsegment != p_current_vsegment )
-    {
-        PreparePlayback( vsegment, vchapter.i_mk_virtual_start_time );
-    }
-
     if ( !vchapter.p_chapter || !vchapter.p_chapter->Enter( true ) )
     {
         // jump to the location in the found segment
-- 
2.7.1



More information about the vlc-devel mailing list