[vlc-commits] [Git][videolan/vlc][master] atomic: fix static vlc_atomic_rc_t init

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Apr 25 14:23:27 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
4c78bc60 by Thomas Guillem at 2024-04-25T13:11:15+00:00
atomic: fix static vlc_atomic_rc_t init

It was never used, so no bad consequences (I plan to use it soon).

- - - - -


1 changed file:

- include/vlc_atomic.h


Changes:

=====================================
include/vlc_atomic.h
=====================================
@@ -41,7 +41,7 @@ using std::memory_order_acq_rel;
 #include <time.h> /* vlc_atomic_timedwait_daytime */
 
 #define VLC_STATIC_RC { \
-    .refs = 0 \
+    .refs = (uintptr_t) 1 \
 }
 
 typedef struct vlc_atomic_rc_t {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4c78bc6063b6006b8bad4bf53bfb2eef0626dffe

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