[vlc-commits] [Git][videolan/vlc][master] 2 commits: qt: initialize `m_highResolutionTime` in `PlayerControllerPrivate`
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Apr 7 15:14:23 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
e3f7767e by Fatih Uzunoglu at 2025-04-07T14:51:46+00:00
qt: initialize `m_highResolutionTime` in `PlayerControllerPrivate`
- - - - -
7d2000b2 by Fatih Uzunoglu at 2025-04-07T14:51:46+00:00
qt: use `#ifdef` for `QT_HAS_LIBATOMIC` in `PlayerControllerPrivate`
Currently we don't account for `QT_HAS_LIBATOMIC` being `0`.
- - - - -
1 changed file:
- modules/gui/qt/player/player_controller_p.hpp
Changes:
=====================================
modules/gui/qt/player/player_controller_p.hpp
=====================================
@@ -100,10 +100,10 @@ public:
double m_position = 0.f;
VLCTick m_length= 0;
-#if QT_HAS_LIBATOMIC
+#ifdef QT_HAS_LIBATOMIC
std::atomic<vlc_player_timer_smpte_timecode> m_highResolutionTime;
#else
- vlc_player_timer_smpte_timecode m_highResolutionTime;
+ vlc_player_timer_smpte_timecode m_highResolutionTime {};
mutable QReadWriteLock m_highResolutionTimeLock;
#endif
mutable QPair<vlc_player_timer_smpte_timecode, QString> m_highResolutionTimeSample;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/09d3f9914cd3ab27cbbb0a14a65c21c8d431be76...7d2000b25b047347e2044df484d3874dee1ef1b5
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/09d3f9914cd3ab27cbbb0a14a65c21c8d431be76...7d2000b25b047347e2044df484d3874dee1ef1b5
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