mirror of https://github.com/mgba-emu/mgba.git
Qt: AudioProcessor::m_context can be null
This commit is contained in:
parent
c1eb1e5ae1
commit
6a5ce56f73
|
@ -50,7 +50,7 @@ public slots:
|
||||||
virtual void requestSampleRate(unsigned) = 0;
|
virtual void requestSampleRate(unsigned) = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
mCoreThread* input() { return m_context->thread(); }
|
mCoreThread* input() { return m_context ? m_context->thread() : nullptr; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<CoreController> m_context;
|
std::shared_ptr<CoreController> m_context;
|
||||||
|
|
Loading…
Reference in New Issue