From 165fbec0a3fde23f3ca1dd113dc01d2973d19e38 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 31 Aug 2022 09:15:08 -0400 Subject: [PATCH] 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: --- subprojects/gstreamer/gst/gst.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subprojects/gstreamer/gst/gst.c b/subprojects/gstreamer/gst/gst.c index ddfc1788ee..fa1b338983 100644 --- a/subprojects/gstreamer/gst/gst.c +++ b/subprojects/gstreamer/gst/gst.c @@ -797,8 +797,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 @@ -806,6 +804,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,