From a7250468ac22b043607c21228a708888873dd3cd Mon Sep 17 00:00:00 2001 From: Wook Song Date: Tue, 27 Jun 2023 16:00:28 +0900 Subject: [PATCH] Daemon/Model: Add missing gst initialization This patch adds GStreamer initialization procedure into init_model_module. Without the initialization, D-Bus interfaces for the models inproperly work. Signed-off-by: Wook Song --- daemon/model-dbus-impl.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/daemon/model-dbus-impl.cc b/daemon/model-dbus-impl.cc index 608692a..765c731 100644 --- a/daemon/model-dbus-impl.cc +++ b/daemon/model-dbus-impl.cc @@ -12,6 +12,7 @@ #include #include +#include #include "common.h" #include "dbus-interface.h" @@ -376,6 +377,14 @@ out: static void init_model_module (void *data) { + GError *err = NULL; + gboolean ret; + + ret = gst_init_check (NULL, NULL, &err); + if (!ret) { + _E ("Failed to initialize GStreamer with err msg (%s)", (err ? err->message : "NULL")); + } + g_clear_error (&err); } /** -- 2.7.4