diff options
author | kwangshik.kim <kwangshik.kim@lge.com> | 2024-03-07 18:24:05 +0900 |
---|---|---|
committer | Arun Raghavan <arun@asymptotic.io> | 2024-04-05 09:31:47 -0400 |
commit | 6c77b0191a6be390cc1cef2f7da7ba202ab86a92 (patch) | |
tree | 102f107501d88af0d51e2f62b1358330145f7c7b /meson.build | |
parent | 84f5b742e39ba3e375bac9144e0243b7331f4019 (diff) |
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>
Diffstat (limited to 'meson.build')
0 files changed, 0 insertions, 0 deletions