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,11 +208,9 @@ void matroska_segment_c::LoadCues( KaxCues *cues ) ...@@ -208,11 +208,9 @@ void matroska_segment_c::LoadCues( KaxCues *cues )
if( track_id != 0 && cue_mk_time != -1 && cue_position != static_cast<uint64_t>( -1 ) ) { 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; SegmentSeeker::Seekpoint::TrustLevel level = SegmentSeeker::Seekpoint::DISABLED;
if( ! b_invalid_cue ) if( ! b_invalid_cue && tracks.find( track_id ) != tracks.end() )
{ {
level = SegmentSeeker::Seekpoint::QUESTIONABLE; // TODO: var_InheritBool( ..., "mkv-trust-cues" ); level = SegmentSeeker::Seekpoint::QUESTIONABLE; // TODO: var_InheritBool( ..., "mkv-trust-cues" );
} }
...@@ -220,9 +218,6 @@ void matroska_segment_c::LoadCues( KaxCues *cues ) ...@@ -220,9 +218,6 @@ void matroska_segment_c::LoadCues( KaxCues *cues )
_seeker.add_seekpoint( track_id, _seeker.add_seekpoint( track_id,
SegmentSeeker::Seekpoint( cue_position, cue_mk_time, level ) ); SegmentSeeker::Seekpoint( cue_position, cue_mk_time, level ) );
} }
else
msg_Warn( &sys.demuxer, "Found cue with invalid track id = %u", track_id );
}
} }
else 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