From 20396ac951e4a4230f595f9d33020179957109b8 Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Wed, 28 Oct 2020 18:17:44 +0100 Subject: [PATCH] application: initialize libcallaudio on startup --- src/calls-application.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/calls-application.c b/src/calls-application.c index 3df8010..716b767 100644 --- a/src/calls-application.c +++ b/src/calls-application.c @@ -40,6 +40,7 @@ #include #include +#include #include /** @@ -301,11 +302,17 @@ static void startup (GApplication *application) { GtkIconTheme *icon_theme; + g_autoptr(GError) error = NULL; G_APPLICATION_CLASS (calls_application_parent_class)->startup (application); hdy_init (); + if (!call_audio_init (&error)) + { + g_warning ("Failed to init libcallaudio: %s", error->message); + } + g_set_prgname (APP_ID); g_set_application_name (_("Calls"));