[vlc-commits] mkv: ordered chapters need to know the current chapter even when not starting
Steve Lhomme
git at videolan.org
Thu Mar 17 17:07:11 CET 2016
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Mar 17 16:53:03 2016 +0100| [7d81e7a12d11932f43abff8fd239c9c350e83705] | committer: Jean-Baptiste Kempf
mkv: ordered chapters need to know the current chapter even when not starting
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d81e7a12d11932f43abff8fd239c9c350e83705
---
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 dbfce01..db95889 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -410,7 +410,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 );
}
More information about the vlc-commits
mailing list