[vlc-devel] [PATCH] demux:mkv: keep the cue info even if the track is not known (yet)
Steve Lhomme
robux4 at videolabs.io
Tue Nov 28 15:31:18 CET 2017
Fixes #19131
---
modules/demux/mkv/matroska_segment.cpp | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index bca4f68571..bd2fd7e7be 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -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
--
2.14.2
More information about the vlc-devel
mailing list