[vlc-devel] [V2] demux: mkv: fix seek
Zhao Zhili
quinkblack at foxmail.com
Fri Jun 29 18:53:10 CEST 2018
This fixes a regression from 6b10c2e6.
---
modules/demux/mkv/matroska_segment.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 148e66ee8f..5cfab269ec 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -635,6 +635,15 @@ bool matroska_segment_c::Preload( )
cluster = kc_ptr;
+
+ for( tracks_map_t::const_iterator it = tracks.begin();
+ it != tracks.end(); ++it )
+ {
+ _seeker.add_seekpoint( it->first,
+ SegmentSeeker::Seekpoint( cluster->GetElementPosition(),
+ -1, SegmentSeeker::Seekpoint::QUESTIONABLE ) );
+ }
+
/* stop pre-parsing the stream */
break;
}
--
2.15.1 (Apple Git-101)
More information about the vlc-devel
mailing list