mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
gst: core: Properly report connection errors
This commit is contained in:
parent
b9e130fd8c
commit
b57b5703d6
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue