mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 06:30:04 +01:00
cli: fail gracefully if connection to pipewire fails
This commit is contained in:
parent
c1e1d67b72
commit
7abf74942d
1 changed files with 3 additions and 5 deletions
|
|
@ -262,6 +262,7 @@ main (gint argc, gchar **argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
data.loop = loop = g_main_loop_new (NULL, FALSE);
|
||||
data.core = core = wp_core_new (NULL, NULL);
|
||||
g_signal_connect (core, "remote-state-changed",
|
||||
(GCallback) remote_state_changed, &data);
|
||||
|
|
@ -322,10 +323,7 @@ main (gint argc, gchar **argv)
|
|||
}
|
||||
|
||||
wp_core_install_object_manager (core, om);
|
||||
|
||||
wp_core_connect (core);
|
||||
|
||||
data.loop = loop = g_main_loop_new (NULL, FALSE);
|
||||
if (wp_core_connect (core))
|
||||
g_main_loop_run (loop);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue