Convert NeedsIdr member into an atomic variable with a getter

This commit is contained in:
Cameron Gutman committed 2022-01-17 14:30:12 -06:00
1 parent b9a6fb1fe5
commit 8a27fa7bb5
2 files changed
+15 -10

No files matched your search

+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;