#4695 Fix device update causing a crash

meow-7.2.2
Andrey Kleshchev 2025-09-22 19:39:19 +03:00
parent 3ff163887d
commit 1d9f87df4f
1 changed files with 8 additions and 2 deletions

View File

@ -691,7 +691,10 @@ LLVoiceDeviceList& LLWebRTCVoiceClient::getCaptureDevices()
void LLWebRTCVoiceClient::setCaptureDevice(const std::string& name)
{
mWebRTCDeviceInterface->setCaptureDevice(name);
if (mWebRTCDeviceInterface)
{
mWebRTCDeviceInterface->setCaptureDevice(name);
}
}
void LLWebRTCVoiceClient::setDevicesListUpdated(bool state)
{
@ -778,7 +781,10 @@ LLVoiceDeviceList& LLWebRTCVoiceClient::getRenderDevices()
void LLWebRTCVoiceClient::setRenderDevice(const std::string& name)
{
mWebRTCDeviceInterface->setRenderDevice(name);
if (mWebRTCDeviceInterface)
{
mWebRTCDeviceInterface->setRenderDevice(name);
}
}
void LLWebRTCVoiceClient::tuningStart()