gst: core: Properly report connection errors

This commit is contained in:
Philippe Normand 2025-01-12 10:55:45 +00:00 committed by Wim Taymans
parent b9e130fd8c
commit b57b5703d6

View file

@ -3,6 +3,7 @@
/* SPDX-License-Identifier: MIT */ /* SPDX-License-Identifier: MIT */
#include "config.h" #include "config.h"
#include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
@ -105,7 +106,7 @@ mainloop_failed:
} }
connection_failed: connection_failed:
{ {
GST_ERROR ("error connect: %m"); GST_ERROR ("error connect: %s", spa_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);