From b57b5703d6598e8b1c6853176de34834f9840407 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Sun, 12 Jan 2025 10:55:45 +0000 Subject: [PATCH] gst: core: Properly report connection errors --- src/gst/gstpipewirecore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gst/gstpipewirecore.c b/src/gst/gstpipewirecore.c index 6c4fb4b88..e1c6b8bb0 100644 --- a/src/gst/gstpipewirecore.c +++ b/src/gst/gstpipewirecore.c @@ -3,6 +3,7 @@ /* SPDX-License-Identifier: MIT */ #include "config.h" +#include #include #include @@ -105,7 +106,7 @@ mainloop_failed: } connection_failed: { - GST_ERROR ("error connect: %m"); + GST_ERROR ("error connect: %s", spa_strerror (errno)); pw_thread_loop_unlock (core->loop); pw_context_destroy (core->context); pw_thread_loop_destroy (core->loop);