From 92d7da0103c71b063b2b8f21fed705079a4c6086 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 6 Jun 2019 15:05:37 +0200 Subject: daemon: only use properties on core --- src/daemon/main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/daemon/main.c b/src/daemon/main.c index d134c5e9..88deb8f6 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -56,7 +56,6 @@ int main(int argc, char *argv[]) struct pw_main_loop *loop; struct pw_daemon_config *config; char *err = NULL; - struct pw_properties *props; static const struct option long_options[] = { {"help", 0, NULL, 'h'}, {"version", 0, NULL, 'v'}, @@ -97,14 +96,16 @@ int main(int argc, char *argv[]) return -1; } - props = pw_properties_new(PW_KEY_CORE_NAME, daemon_name, - PW_KEY_CORE_DAEMON, "1", NULL); - loop = pw_main_loop_new(props); + loop = pw_main_loop_new(NULL); pw_loop_add_signal(pw_main_loop_get_loop(loop), SIGINT, do_quit, loop); pw_loop_add_signal(pw_main_loop_get_loop(loop), SIGTERM, do_quit, loop); - core = pw_core_new(pw_main_loop_get_loop(loop), props, 0); + core = pw_core_new(pw_main_loop_get_loop(loop), + pw_properties_new( + PW_KEY_CORE_NAME, daemon_name, + PW_KEY_CORE_DAEMON, "1", NULL), + 0); if (pw_daemon_config_run_commands(config, core) < 0) { pw_log_error("failed to run config commands"); -- cgit v1.2.3