Convert NeedsIdr member into an atomic variable with a getter

This commit is contained in:
Cameron Gutman
2022-01-17 14:30:12 -06:00
parent b9a6fb1fe5
commit 8a27fa7bb5
2 changed files with 15 additions and 10 deletions
+3 -1
View File
@@ -42,6 +42,8 @@ public:
void flushWindowEvents();
bool getAndClearPendingIdrFrameStatus();
signals:
void stageStarting(QString stage);
@@ -145,7 +147,7 @@ private:
SDL_Window* m_Window;
IVideoDecoder* m_VideoDecoder;
SDL_SpinLock m_DecoderLock;
bool m_NeedsIdr;
SDL_atomic_t m_NeedsIdr;
bool m_AudioDisabled;
bool m_AudioMuted;
Uint32 m_FullScreenFlag;