summaryrefslogtreecommitdiff
path: root/indra/llwebrtc/llwebrtc.h
diff options
context:
space:
mode:
authorRoxanne Skelly <roxanne@roxiware.com>2024-04-08 04:10:34 -0700
committerGitHub <noreply@github.com>2024-04-08 04:10:34 -0700
commitf2ec9e5cca078434e624e42afec11ebd7d681e06 (patch)
treed6afcd0bc1cf2c86e5f5a668749c01c14bf04da2 /indra/llwebrtc/llwebrtc.h
parenta0cc1b6bd2b1f3578c8d34b634e4add20bae2dd2 (diff)
parent648741470f67120d99aec3a4aeceeaf4395cca09 (diff)
Merge pull request #1150 from secondlife/roxie/webrtc-voice
Diffstat (limited to 'indra/llwebrtc/llwebrtc.h')
-rw-r--r--indra/llwebrtc/llwebrtc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llwebrtc/llwebrtc.h b/indra/llwebrtc/llwebrtc.h
index 8830799cde..ac71e0c744 100644
--- a/indra/llwebrtc/llwebrtc.h
+++ b/indra/llwebrtc/llwebrtc.h
@@ -78,7 +78,12 @@ class LLWebRTCVoiceDevice
LLWebRTCVoiceDevice(const std::string &display_name, const std::string &id) :
mDisplayName(display_name),
mID(id)
- {};
+ {
+ if (mID.empty())
+ {
+ mID = display_name;
+ }
+ };
};
typedef std::vector<LLWebRTCVoiceDevice> LLWebRTCVoiceDeviceList;