mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
[AFV] Do not restart audio if it was not started yet
This commit is contained in:
committed by
Mat Sutcliffe
parent
9d172c3d7d
commit
3792c4fa76
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user