[vlc-commits] [Git][videolan/vlc][3.0.x] demux: mkv: fix busyloop when seeking to 0

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed May 10 08:39:02 UTC 2023



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
1965464a by Thomas Guillem at 2023-05-10T08:16:50+00:00
demux: mkv: fix busyloop when seeking to 0

Fixes #28081

(cherry picked from commit c6d6da2dbe27e8a3666386772628f3afabfb5e9a)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

- - - - -


1 changed file:

- modules/demux/mkv/matroska_segment_seeker.cpp


Changes:

=====================================
modules/demux/mkv/matroska_segment_seeker.cpp
=====================================
@@ -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;
     }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1965464a6d7b1a2e3254b2bae119e34cad8ca21f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1965464a6d7b1a2e3254b2bae119e34cad8ca21f
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