mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-10 17:31:58 +02:00
fix a crash in audio injector when there is no audio mixer
This commit is contained in:
parent
19e29585fc
commit
c259b025db
1 changed files with 5 additions and 1 deletions
|
@ -58,7 +58,11 @@ void* AudioInjectionManager::injectAudioViaThread(void* args) {
|
|||
|
||||
// if we don't have an explicit destination socket then pull active socket for current audio mixer from agent list
|
||||
if (!_isDestinationSocketExplicit) {
|
||||
_destinationSocket = *AgentList::getInstance()->soloAgentOfType(AGENT_TYPE_AUDIO_MIXER)->getActiveSocket();
|
||||
Agent* audioMixer = AgentList::getInstance()->soloAgentOfType(AGENT_TYPE_AUDIO_MIXER);
|
||||
|
||||
if (audioMixer) {
|
||||
_destinationSocket = *audioMixer->getActiveSocket();
|
||||
}
|
||||
}
|
||||
|
||||
injector->injectAudio(_injectorSocket, &_destinationSocket);
|
||||
|
|
Loading…
Reference in a new issue