Commit ce8ea991 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

demux:mkv: keep the cue info even if the track is not known (yet)

Fixes #19131
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent fb643da7
......@@ -208,20 +208,15 @@ void matroska_segment_c::LoadCues( KaxCues *cues )
if( track_id != 0 && cue_mk_time != -1 && cue_position != static_cast<uint64_t>( -1 ) ) {
if( tracks.find( track_id ) != tracks.end() )
{
SegmentSeeker::Seekpoint::TrustLevel level = SegmentSeeker::Seekpoint::DISABLED;
if( ! b_invalid_cue )
{
level = SegmentSeeker::Seekpoint::QUESTIONABLE; // TODO: var_InheritBool( ..., "mkv-trust-cues" );
}
SegmentSeeker::Seekpoint::TrustLevel level = SegmentSeeker::Seekpoint::DISABLED;
_seeker.add_seekpoint( track_id,
SegmentSeeker::Seekpoint( cue_position, cue_mk_time, level ) );
if( ! b_invalid_cue && tracks.find( track_id ) != tracks.end() )
{
level = SegmentSeeker::Seekpoint::QUESTIONABLE; // TODO: var_InheritBool( ..., "mkv-trust-cues" );
}
else
msg_Warn( &sys.demuxer, "Found cue with invalid track id = %u", track_id );
_seeker.add_seekpoint( track_id,
SegmentSeeker::Seekpoint( cue_position, cue_mk_time, level ) );
}
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment