diff options
author | Robert Adam <dev@robert-adam.de> | 2021-04-08 19:21:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 19:21:40 +0300 |
commit | f04d6635a9158a5dc42ccc814eb36e5272fdf4b3 (patch) | |
tree | 764ad4ace57f21d273414d29fdd96b75b029e4cc /src/mumble/mumble_lt.ts | |
parent | e8f5c7037b2e2888a20d507208798f7f2d7ba97a (diff) | |
parent | ae94142c514467bc68469aa4d2a22e8063518982 (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_lt.ts')
-rw-r--r-- | src/mumble/mumble_lt.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mumble/mumble_lt.ts b/src/mumble/mumble_lt.ts index 4395c3f58..40ac3d860 100644 --- a/src/mumble/mumble_lt.ts +++ b/src/mumble/mumble_lt.ts @@ -464,6 +464,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> |