Qt: AudioProcessor::m_context can be null

This commit is contained in:
Vicki Pfau 2019-01-12 15:56:46 -08:00
parent 9479bd9cfc
commit 9cf667a90b
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public slots:
virtual void requestSampleRate(unsigned) = 0;
protected:
mCoreThread* input() { return m_context->thread(); }
mCoreThread* input() { return m_context ? m_context->thread() : nullptr; }
private:
std::shared_ptr<CoreController> m_context;