mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 09:00:54 +00:00
gst_init: Initialize static plugins just before dynamic plugins
All plugins needs to be initialized after `gst_initialized = TRUE;` otherwise they could complain that gst_init() has not been called. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2991>
This commit is contained in:
parent
186d8bd789
commit
1ba67eab9e
1 changed files with 1 additions and 2 deletions
|
@ -813,8 +813,6 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
|
|||
gst_register_core_elements, VERSION, GST_LICENSE, PACKAGE,
|
||||
GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
|
||||
|
||||
init_static_plugins ();
|
||||
|
||||
/*
|
||||
* Any errors happening below this point are non-fatal, we therefore mark
|
||||
* gstreamer as being initialized, since it is the case from a plugin point of
|
||||
|
@ -822,6 +820,7 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
|
|||
*/
|
||||
gst_initialized = TRUE;
|
||||
|
||||
init_static_plugins ();
|
||||
gst_update_registry ();
|
||||
|
||||
GST_INFO ("GLib runtime version: %d.%d.%d", glib_major_version,
|
||||
|
|
Loading…
Reference in a new issue