Skip to content
Snippets Groups Projects
Commit 7bbfee83 authored by Zhao Zhili's avatar Zhao Zhili Committed by Steve Lhomme
Browse files

demux: mkv: fix seek

This fixes a regression from 6b10c2e6. Seek failed due to empty
_tracks_seekpoints[video_track].
parent c784e8ce
No related branches found
No related tags found
No related merge requests found
......@@ -635,6 +635,16 @@ bool matroska_segment_c::Preload( )
cluster = kc_ptr;
// add first cluster as trusted seekpoint for all tracks
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::TrustLevel::QUESTIONABLE ) );
}
/* stop pre-parsing the stream */
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment