From 4c66d08d0870f631101de9dfd53844706373d6b5 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Sun, 2 Nov 2014 18:51:08 +0000 Subject: [PATCH] gst: ensure GStreamer initialization debug message is displayed The GST_INFO ("initialized GStreamer succesfully") is currently at the end of gst_init_check which isn't guaranteed to be run since GStreamer can be initialized by using init_pre and init_post directly from GOptionContext like gst-launch does. Ensure this message is displayed by moving it to init_post. --- gst/gst.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gst/gst.c b/gst/gst.c index 562a676..cd91242 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -348,12 +348,6 @@ gst_init_check (int *argc, char **argv[], GError ** err) gst_initialized = res; - if (res) { - GST_INFO ("initialized GStreamer successfully"); - } else { - GST_INFO ("failed to initialize GStreamer"); - } - g_mutex_unlock (&init_lock); return res; @@ -715,6 +709,7 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data, glib_minor_version, glib_micro_version); GST_INFO ("GLib headers version: %d.%d.%d", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); + GST_INFO ("initialized GStreamer successfully"); return TRUE; } -- 2.7.4