mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
gst: core: Fixup connection error handling
Commit b57b5703d6 made use of `spa_strerror()`
which is incorrect here because pw_connect sets `errno`, so we should use
`strerror()`.
This commit is contained in:
parent
b57b5703d6
commit
13c869801c
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ mainloop_failed:
|
||||||
}
|
}
|
||||||
connection_failed:
|
connection_failed:
|
||||||
{
|
{
|
||||||
GST_ERROR ("error connect: %s", spa_strerror (errno));
|
GST_ERROR ("error connect: %s", strerror (errno));
|
||||||
pw_thread_loop_unlock (core->loop);
|
pw_thread_loop_unlock (core->loop);
|
||||||
pw_context_destroy (core->context);
|
pw_context_destroy (core->context);
|
||||||
pw_thread_loop_destroy (core->loop);
|
pw_thread_loop_destroy (core->loop);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue