[vlc-commits] [Git][videolan/vlc][master] macosx: fix progress bar not updating when seeking while paused

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Wed May 13 15:14:13 UTC 2026



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
9354f903 by Serhii Bykov at 2026-05-13T16:41:21+02:00
macosx: fix progress bar not updating when seeking while paused

- - - - -


1 changed file:

- modules/gui/macosx/playqueue/VLCPlayerController.m


Changes:

=====================================
modules/gui/macosx/playqueue/VLCPlayerController.m
=====================================
@@ -510,11 +510,20 @@ static void cb_player_timer_paused(const vlc_tick_t system_date, void * const p_
     });
 }
 
-static void cb_player_timer_seeked(const struct vlc_player_timer_point * const __unused p_value, void * const p_data)
+static void cb_player_timer_seeked(const struct vlc_player_timer_point * const p_value, void * const p_data)
 {
+    if (p_value == NULL) {
+        return; // NULL means seeking just finished; nothing to update here
+    }
     VLCPlayerController * const playerController = (__bridge VLCPlayerController *)p_data;
+    const struct vlc_player_timer_point value_copy = *p_value;
     dispatch_async(dispatch_get_main_queue(), ^{
-        [playerController updatePosition];
+        playerController.playerTime = value_copy;
+        const vlc_tick_t system_now = vlc_tick_now();
+        if ([playerController interpolateTime:system_now] == VLC_SUCCESS) {
+            [playerController updatePosition];
+            [playerController updateTime:system_now forceUpdate:NO];
+        }
     });
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9354f903a439ce74fde3d20a3f4939917b8fbaf2

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9354f903a439ce74fde3d20a3f4939917b8fbaf2
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list