From 08c004e69be754af17b6cf4f090720aec880d2ab Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Fri, 24 Jan 2020 21:31:58 +0100 Subject: [PATCH] [AFV] Connect the network status change signal on both sides (core+UI), as both sides can have independent audio (AFV) clients This solves the issue that users have to restart audio on a "remote" swift GUI --- src/blackcore/corefacade.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blackcore/corefacade.cpp b/src/blackcore/corefacade.cpp index 906033b6d..2d7b82a5a 100644 --- a/src/blackcore/corefacade.cpp +++ b/src/blackcore/corefacade.cpp @@ -276,11 +276,12 @@ namespace BlackCore } // connection status of network changed - if (m_contextAudio && m_contextAudio->isUsingImplementingObject()) + // with AFV no longer use m_contextAudio->isUsingImplementingObject() as audio can run on both sides + if (this->getCContextAudioBase() && m_contextNetwork) { Q_ASSERT(m_contextApplication); c = connect(m_contextNetwork, &IContextNetwork::connectionStatusChanged, - this->getCContextAudio(), &CContextAudio::xCtxNetworkConnectionStatusChanged, Qt::QueuedConnection); + this->getCContextAudioBase(), &CContextAudio::xCtxNetworkConnectionStatusChanged, Qt::QueuedConnection); Q_ASSERT(c); times.insert("Post setup, connects audio", time.restart()); }