[vlc-commits] mkv: we don't need to prepare playback when jumping from Chapter commands

Steve Lhomme git at videolan.org
Thu Mar 17 17:07:11 CET 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Mar 17 16:53:07 2016 +0100| [af1f48a620bb0a0caab6fa9b3c6c30bc5287acb1] | committer: Jean-Baptiste Kempf

mkv: we don't need to prepare playback when jumping from Chapter commands

it is done in the Seek with the provided virtual_chapter

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 b3a203a..144566b 100644
--- a/modules/demux/mkv/demux.cpp
+++ b/modules/demux/mkv/demux.cpp
@@ -801,12 +801,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



More information about the vlc-commits mailing list