[vlc-commits] [Git][videolan/vlc][master] qt: initialize atomic smpte timecode in `PlayerControllerPrivate`
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Sep 8 16:21:26 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
41b4b023 by Fatih Uzunoglu at 2025-09-08T16:04:21+00:00
qt: initialize atomic smpte timecode in `PlayerControllerPrivate`
This seems a mistake because it is noted that `std::atomic` does
not initialize by default (at least in C++17).
- - - - -
1 changed file:
- modules/gui/qt/player/player_controller_p.hpp
Changes:
=====================================
modules/gui/qt/player/player_controller_p.hpp
=====================================
@@ -101,7 +101,7 @@ public:
VLCDuration m_length;
#ifdef QT_HAS_LIBATOMIC
- std::atomic<vlc_player_timer_smpte_timecode> m_highResolutionTime;
+ std::atomic<vlc_player_timer_smpte_timecode> m_highResolutionTime {{}};
#else
vlc_player_timer_smpte_timecode m_highResolutionTime {};
mutable QReadWriteLock m_highResolutionTimeLock;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/41b4b0230bd9b8df6baace74d7b4bc57f9f277b0
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/41b4b0230bd9b8df6baace74d7b4bc57f9f277b0
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