Searched hist:"4 cd78a3db2478d3c1527905a26c9d3fbee83ccac" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/audio/ |
H A D | pwaudio.c | diff 4cd78a3db2478d3c1527905a26c9d3fbee83ccac Wed Sep 18 03:17:06 CDT 2024 Michal Privoznik <mprivozn@redhat.com> audio/pw: Report more accurate error when connecting to PipeWire fails
According to its man page [1], pw_context_connect() sets errno on failure:
Returns a Core on success or NULL with errno set on error.
It may be handy to see errno when figuring out why PipeWire failed to connect. That leaves us with just one possible path to reach 'fail_error' label which is then moved to that path and also its error message is adjusted slightly.
1: https://docs.pipewire.org/group__pw__core.html#ga5994e3a54e4ec718094ca02a1234815b
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <3a78811ad5b0e87816b7616ab21d2eeef00b9c52.1726647033.git.mprivozn@redhat.com>
|