mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
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.
This commit is contained in:
parent
c42b525848
commit
4c66d08d08
1 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue