Skip to content

Commit

Permalink
tweak(voip/mumble): null audio client
Browse files Browse the repository at this point in the history
  • Loading branch information
gottfriedleibniz authored and blattersturm committed Jan 25, 2022
1 parent 1cb1329 commit 0cff2af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/components/voip-mumble/src/MumbleAudioInput.cpp
Expand Up @@ -161,7 +161,10 @@ void MumbleAudioInput::ThreadFunc()
{
InitializeAudioDevice();

if (m_audioCaptureClient.Get())
// @FIX(pasta-wolfram-mockingbird): Ensure the audio client has been
// created. If m_audioCaptureClient is null then HandleIncomingAudio
// will return E_NOT_VALID_STATE and force another recreation cycle.
if (m_audioCaptureClient.Get() && m_audioClient.Get())
{
m_audioClient->Start();
}
Expand Down

0 comments on commit 0cff2af

Please sign in to comment.