mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pulse-tunnel: translate pulse error to spa error
Pulseaudio has its own error enumeration, convert them to spa errors so that we report the right errors.
This commit is contained in:
parent
59d5d93878
commit
bc6c19ccdf
2 changed files with 40 additions and 1 deletions
|
|
@ -32,6 +32,7 @@
|
|||
#include <pipewire/private.h>
|
||||
|
||||
#include <pulse/pulseaudio.h>
|
||||
#include "module-protocol-pulse/defs.h"
|
||||
#include "module-protocol-pulse/format.h"
|
||||
|
||||
/** \page page_module_pulse_tunnel PipeWire Module: Pulse Tunnel
|
||||
|
|
@ -753,7 +754,7 @@ error_unlock:
|
|||
pa_threaded_mainloop_unlock(impl->pa_mainloop);
|
||||
error:
|
||||
pw_log_error("failed to connect: %s", pa_strerror(res));
|
||||
return -res;
|
||||
return err_to_res(res);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue