[vlc-devel] [PATCH 3/6] mkv: wait for the next Demux() call if we entered a new Chapter

Steve Lhomme robux4 at videolabs.io
Thu Mar 17 12:16:11 CET 2016


---
 modules/demux/mkv/virtual_segment.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/mkv/virtual_segment.cpp b/modules/demux/mkv/virtual_segment.cpp
index 4e3bf04..330ca4b 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -424,8 +424,9 @@ bool virtual_segment_c::UpdateCurrentToChapter( demux_t & demux )
 
     if ( !b_current_vchapter_entered && p_current_vchapter != NULL )
     {
-        p_current_vchapter->Enter( true );
         b_current_vchapter_entered = true;
+        if (p_current_vchapter->Enter( true ))
+            return true;
     }
 
     if ( sys.i_pts != VLC_TS_INVALID )
-- 
2.7.2.windows.1



More information about the vlc-devel mailing list