[vlc-commits] mkv: removed code that would make us loop ordered chapters forever

Filip Roséen git at videolan.org
Mon May 9 15:09:32 CEST 2016


vlc | branch: master | Filip Roséen <filip at videolabs.io> | Mon May  9 14:53:23 2016 +0200| [fba90482f8602ffc2db52aeba6810a7fe92cbe6a] | committer: Jean-Baptiste Kempf

mkv: removed code that would make us loop ordered chapters forever

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)).

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

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

 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;
 }
 



More information about the vlc-commits mailing list