Commit 359e82a9 authored by Steve Lhomme's avatar Steve Lhomme

demux:mkv: do look far for seekpoints if the segment has no Cues

Fixes #19631
parent 6be2ffe9
......@@ -310,7 +310,7 @@ SegmentSeeker::get_seekpoints( matroska_segment_c& ms, mtime_t target_pts,
if ( start.fpos == std::numeric_limits<fptr_t>::max() )
return tracks_seekpoint_t();
if ( end.fpos != std::numeric_limits<fptr_t>::max() )
if ( end.fpos != std::numeric_limits<fptr_t>::max() || !ms.b_cues )
// do not read the whole (infinite?) file to get seek indexes
index_range( ms, Range( start.fpos, end.fpos ), needle_pts );
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