mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-15 14:42:26 +00:00
Switch the decoder lock to a mutex
It can be held for non-trivial amounts of time.
This commit is contained in:
@@ -100,10 +100,7 @@ class Session : public QObject
|
||||
|
||||
public:
|
||||
explicit Session(NvComputer* computer, NvApp& app, StreamingPreferences *preferences = nullptr);
|
||||
|
||||
// NB: This may not get destroyed for a long time! Don't put any cleanup here.
|
||||
// Use Session::exec() or DeferredSessionCleanupTask instead.
|
||||
virtual ~Session() {};
|
||||
virtual ~Session();
|
||||
|
||||
Q_INVOKABLE void exec(QWindow* qtWindow);
|
||||
|
||||
@@ -255,7 +252,7 @@ private:
|
||||
NvApp m_App;
|
||||
SDL_Window* m_Window;
|
||||
IVideoDecoder* m_VideoDecoder;
|
||||
SDL_SpinLock m_DecoderLock;
|
||||
SDL_mutex* m_DecoderLock;
|
||||
bool m_AudioDisabled;
|
||||
bool m_AudioMuted;
|
||||
Uint32 m_FullScreenFlag;
|
||||
|
||||
Reference in New Issue
Block a user