[AFV] Do not restart audio if it was not started yet

This commit is contained in:
Roland Rossgotterer
2019-10-09 16:39:27 +02:00
committed by Mat Sutcliffe
parent 9d172c3d7d
commit 3792c4fa76

View File

@@ -170,6 +170,8 @@ namespace BlackCore
bool CAfvClient::restartWithNewDevices(const CAudioDeviceInfo &inputDevice, const CAudioDeviceInfo &outputDevice)
{
if (! m_isStarted) { return true; }
if (QThread::currentThread() != this->thread())
{
// Method needs to be executed in the object thread since it will create new QObject children