[vlc-commits] [Git][videolan/vlc][master] demux: mkv: fix busyloop when seeking to 0
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat May 6 12:23:03 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
c6d6da2d by Thomas Guillem at 2023-05-06T11:14:40+00:00
demux: mkv: fix busyloop when seeking to 0
Fixes #28081
- - - - -
1 changed file:
- modules/demux/mkv/matroska_segment_seeker.cpp
Changes:
=====================================
modules/demux/mkv/matroska_segment_seeker.cpp
=====================================
@@ -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;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c6d6da2dbe27e8a3666386772628f3afabfb5e9a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c6d6da2dbe27e8a3666386772628f3afabfb5e9a
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list