[vlc-devel] [PATCH 4/9] mkv: ordered chapters need to know the current chapter even when not starting

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


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

diff --git a/modules/demux/mkv/virtual_segment.cpp b/modules/demux/mkv/virtual_segment.cpp
index ec11a09..a2941d2 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -407,7 +407,7 @@ virtual_chapter_c* virtual_edition_c::getChapterbyTimecode( int64_t time )
     }
 
     /* special case for the beggining of the first ordered chapter */
-    if ( time == 0 && b_ordered && vchapters.size() )
+    if ( b_ordered && vchapters.size() )
     {
         return vchapters[0]->getSubChapterbyTimecode( time );
     }
-- 
2.7.1



More information about the vlc-devel mailing list