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

Filip Roséen filip at videolabs.io
Fri May 6 19:09:13 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 5038e0d..c1e8051 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