Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julian Bouzas
WirePlumber
Commits
7abf7494
Commit
7abf7494
authored
Dec 17, 2019
by
George Kiagiadakis
Browse files
cli: fail gracefully if connection to pipewire fails
parent
c1e1d67b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/wireplumber-cli.c
View file @
7abf7494
...
...
@@ -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,11 +323,8 @@ 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
);
g_main_loop_run
(
loop
);
if
(
wp_core_connect
(
core
))
g_main_loop_run
(
loop
);
return
0
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment