mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 01:36:26 +02:00
don't attempt to inject if audio mixer has no active socket
This commit is contained in:
parent
75d8934961
commit
7d48c9b3bd
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ void* AudioInjectionManager::injectAudioViaThread(void* args) {
|
||||||
// if we don't have an explicit destination socket then pull active socket for current audio mixer from node list
|
// if we don't have an explicit destination socket then pull active socket for current audio mixer from node list
|
||||||
if (!_isDestinationSocketExplicit) {
|
if (!_isDestinationSocketExplicit) {
|
||||||
Node* audioMixer = NodeList::getInstance()->soloNodeOfType(NODE_TYPE_AUDIO_MIXER);
|
Node* audioMixer = NodeList::getInstance()->soloNodeOfType(NODE_TYPE_AUDIO_MIXER);
|
||||||
if (audioMixer) {
|
if (audioMixer && audioMixer->getActiveSocket()) {
|
||||||
_destinationSocket = *audioMixer->getActiveSocket();
|
_destinationSocket = *audioMixer->getActiveSocket();
|
||||||
} else {
|
} else {
|
||||||
pthread_exit(0);
|
pthread_exit(0);
|
||||||
|
|
Loading…
Reference in a new issue