Skip to content
Snippets Groups Projects
Commit c6d6da2d authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf
Browse files

demux: mkv: fix busyloop when seeking to 0

Fixes #28081
parent a9ebdb90
No related branches found
No related tags found
1 merge request!3636demux: mkv: fix busyloop when seeking to 0
Pipeline #340219 passed with stages
in 31 minutes and 29 seconds
......@@ -329,6 +329,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