diff --git a/modules/gui/qt/player/player_controller_p.hpp b/modules/gui/qt/player/player_controller_p.hpp index a54de92efb497a978a8f9aa036aacc67badb3e23..8f7a17cf139aec3864d63c135b5a2d212c1a09bf 100644 --- a/modules/gui/qt/player/player_controller_p.hpp +++ b/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;