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:
Philippe Normand 2025-01-12 11:42:29 +00:00
parent b57b5703d6
commit 13c869801c

View file

@ -106,7 +106,7 @@ mainloop_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_context_destroy (core->context);
pw_thread_loop_destroy (core->loop);