From 3792c4fa76c2da8b1f84047176768109849c9a2a Mon Sep 17 00:00:00 2001 From: Roland Rossgotterer Date: Wed, 9 Oct 2019 16:39:27 +0200 Subject: [PATCH] [AFV] Do not restart audio if it was not started yet --- src/blackcore/afv/clients/afvclient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blackcore/afv/clients/afvclient.cpp b/src/blackcore/afv/clients/afvclient.cpp index 814559420..0c5254195 100644 --- a/src/blackcore/afv/clients/afvclient.cpp +++ b/src/blackcore/afv/clients/afvclient.cpp @@ -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