Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-04-08 19:21:40 +0300
committerGitHub <noreply@github.com>2021-04-08 19:21:40 +0300
commitf04d6635a9158a5dc42ccc814eb36e5272fdf4b3 (patch)
tree764ad4ace57f21d273414d29fdd96b75b029e4cc /src/mumble/mumble_bg.ts
parente8f5c7037b2e2888a20d507208798f7f2d7ba97a (diff)
parentae94142c514467bc68469aa4d2a22e8063518982 (diff)
Merge PR #4920: FIX(client): Check the returned error code of ALSA
The functions snd_card_get_name and snd_card_get_longname allocate a String and return 0 if success otherwise the negative error code. There is a need to check the return value before using the allocated String. This commit fixes this by checking the return value and exiting if the return value is not zero. Ref:alsa-project.org/alsa-doc/alsa-lib/group___control.html#gad48d44da8e3bfe150e928267008b8ff5
Diffstat (limited to 'src/mumble/mumble_bg.ts')
-rw-r--r--src/mumble/mumble_bg.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mumble/mumble_bg.ts b/src/mumble/mumble_bg.ts
index 5bc0ff419..c4c627535 100644
--- a/src/mumble/mumble_bg.ts
+++ b/src/mumble/mumble_bg.ts
@@ -463,6 +463,17 @@ This value allows you to set the maximum number of users allowed in the channel.
</message>
</context>
<context>
+ <name>ALSAEnumerator</name>
+ <message>
+ <source>Getting name (longname) of the sound card failed: %1</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Getting name of the sound card failed: %1</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
<name>ASIOConfig</name>
<message>
<source>%1 (version %2)</source>