[vlc-commits] [Git][videolan/vlc][master] clock: use a const clock in vlc_clock_IsPaused()

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Jun 29 09:57:46 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
7583f14f by Steve Lhomme at 2024-06-29T09:46:00+00:00
clock: use a const clock in vlc_clock_IsPaused()

- - - - -


2 changed files:

- src/clock/clock.c
- src/clock/clock.h


Changes:

=====================================
src/clock/clock.c
=====================================
@@ -509,13 +509,13 @@ void vlc_clock_Unlock(vlc_clock_t *clock)
     vlc_mutex_unlock(&main_clock->lock);
 }
 
-static inline void AssertLocked(vlc_clock_t *clock)
+static inline void AssertLocked(const vlc_clock_t *clock)
 {
     vlc_clock_main_t *main_clock = clock->owner;
     vlc_mutex_assert(&main_clock->lock);
 }
 
-bool vlc_clock_IsPaused(vlc_clock_t *clock)
+bool vlc_clock_IsPaused(const vlc_clock_t *clock)
 {
     AssertLocked(clock);
 


=====================================
src/clock/clock.h
=====================================
@@ -265,7 +265,7 @@ void vlc_clock_Unlock(vlc_clock_t *clock);
  * @retval true if the clock is paused
  * @retval false if the clock is not paused
  */
-bool vlc_clock_IsPaused(vlc_clock_t *clock);
+bool vlc_clock_IsPaused(const vlc_clock_t *clock);
 
 /**
  * Wait for a timestamp expressed in system time



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/7583f14fa31228be42e57e708a904a23a9301aca

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