[vlc-devel] [PATCH 29/30] mkv: removed code that would make us loop ordered chapters forever

Filip Roséen filip at videolabs.io
Mon May 9 14:53:23 CEST 2016


With this piece of code in place we would go back to the first chapter
when the virtual "file" is supposed to end (ie. infinite loop instead of
correct EOF (which would make the core go to the next playlist item)).
---
 modules/demux/mkv/virtual_segment.cpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/demux/mkv/virtual_segment.cpp b/modules/demux/mkv/virtual_segment.cpp
index d3aa988..f7a5304 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -408,12 +408,6 @@ virtual_chapter_c* virtual_edition_c::getChapterbyTimecode( int64_t time )
             return vchapters[i]->getSubChapterbyTimecode( time );
     }
 
-    /* special case for the beggining of the first ordered chapter */
-    if ( b_ordered && vchapters.size() )
-    {
-        return vchapters[0]->getSubChapterbyTimecode( time );
-    }
-
     return NULL;
 }
 
-- 
2.8.2



More information about the vlc-devel mailing list