summaryrefslogtreecommitdiff
path: root/indra/llwebrtc
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-09-04 23:09:56 +0800
committerErik Kundiman <erik@megapahit.org>2026-09-04 23:25:54 +0800
commit7f8684301a716d23343cd6e85a4759f3a11546d4 (patch)
tree989df6258c0399431aba03da5805d93542db5317 /indra/llwebrtc
parent0400b6693648c58f901c2b492a78e332815bcaa2 (diff)
parenta4aa5233cad1fb66555e7768750af1b57bc1da7c (diff)
Merge tag 'Second_Life_Release#a4aa523-26.4' into 26.4
Diffstat (limited to 'indra/llwebrtc')
-rw-r--r--indra/llwebrtc/llwebrtc.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/llwebrtc/llwebrtc.cpp b/indra/llwebrtc/llwebrtc.cpp
index ce5f487b32..4b98944d10 100644
--- a/indra/llwebrtc/llwebrtc.cpp
+++ b/indra/llwebrtc/llwebrtc.cpp
@@ -720,7 +720,11 @@ void LLWebRTCImpl::workerStartPlayout()
{
// Only run playout while voice is enabled and there's a connection to
// render (running the output device otherwise is heard as a buzz).
+#if CM_WEBRTC
if (!mDeviceModule || !mVoiceEnabled || mTuningMode || mDeviceModule->Playing() || mPeerConnections.empty())
+#else
+ if (!mDeviceModule || !mVoiceEnabled || mTuningMode || mPeerConnections.empty())
+#endif
{
return;
}
@@ -744,6 +748,18 @@ void LLWebRTCImpl::workerStartPlayout()
}
}
+#if !CM_WEBRTC
+ if (mDeviceModule->Playing())
+ {
+ if (mDeviceModule->GetPlayoutDevice() == playoutDevice)
+ {
+ return;
+ }
+
+ mDeviceModule->StopPlayout();
+ }
+#endif
+
#if WEBRTC_WIN
if (playoutDevice < 0)
{