pulseaudio/src
kwangshik.kim 6c77b0191a cli-command: Fix wrong condition check of pa_module_load
pa_module_load API's return value is integer which is
enum pa_error_code_t with minus such as -PA_ERR_IO
if the module loading is failed.
pa_cli_command_load gets a return value of pa_module_load
as pa_error_code_t which is wrong.
Minus integer value could not covert to enum which is defined
equal or larger than 0 so that pa_cli_command_load would
recognize the return value as larger than 0 if pa_module_load
return value (integer) is minus.

To fix this issue, I modified return value check logic
of pa_module_load API.
As same as pa_module_load's return type, integer would be used
to check if module load is failed in pa_cli_command_load
and the return value would be compared with minus.

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/3801
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/814>
2024-04-05 09:31:47 -04:00
..
daemon daemon/meson.build: Install dbus policy in /usr, not /etc 2023-04-21 20:10:24 +00:00
modules Don't log battery level and dock status every minute 2024-03-18 23:44:09 +00:00
pulse Fix crash running in restricted environment. 2023-11-12 15:53:38 +03:00
pulsecore cli-command: Fix wrong condition check of pa_module_load 2024-04-05 09:31:47 -04:00
tests tests: Don't run volume tests with impossible alignments 2024-03-22 11:17:35 -04:00
utils pactl: Stop a crash when setting the volume which is out of range 2022-12-06 18:37:33 +11:00
.gitignore tests: Add resampler rewind test 2021-11-03 18:37:31 +00:00
depmod.py update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
meson.build build-sys: Fix macOS build 2022-12-07 10:57:01 +00:00