Skip to content
Snippets Groups Projects
Commit 1965464a authored by Thomas Guillem's avatar Thomas Guillem Committed by Steve Lhomme
Browse files

demux: mkv: fix busyloop when seeking to 0


Fixes #28081

(cherry picked from commit c6d6da2d)
Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>
parent 292c4756
No related branches found
No related tags found
1 merge request!3648[3.0] demux: mkv: fix busyloop when seeking to 0
Pipeline #341857 passed with stages
in 20 minutes and 5 seconds
......@@ -323,6 +323,11 @@ SegmentSeeker::get_seekpoints( matroska_segment_c& ms, vlc_tick_t target_pts,
if( contains_all_of_t() ( tpoints, priority_tracks ) )
return tpoints;
// Avoid busyloop, don't iterate on the same seekpoint
if( needle_pts == start.pts - 1 )
// we found the same needle twice, stop looking
return tpoints;
needle_pts = start.pts - 1;
}
......
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