packages/multimedia/gstreamer1/patches/010-gstplugin-use-lazy-symbol-binding.patch
Rosen Penev 0001f9fcf6
gstreamer1: update to 1.17.2
Added gettext-full host dependency. Normally it comes wth glib2, but in
the update to 2.65, it goes away. Add it here.

Refresh patch.

Add one for systems lacking distutils.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-25 01:35:05 -07:00

20 lines
669 B
Diff

--- a/gst/gstplugin.c
+++ b/gst/gstplugin.c
@@ -790,15 +790,8 @@ _priv_gst_plugin_load_file_for_registry (const gchar * filename,
}
#endif
- flags = G_MODULE_BIND_LOCAL;
- /* libgstpython.so is the gst-python plugin loader. It needs to be loaded with
- * G_MODULE_BIND_LAZY.
- *
- * Ideally there should be a generic way for plugins to specify that they
- * need to be loaded with _LAZY.
- * */
- if (strstr (filename, "libgstpython"))
- flags |= G_MODULE_BIND_LAZY;
+ // No need to resolve all bindings until referenced
+ flags = G_MODULE_BIND_LOCAL | G_MODULE_BIND_LAZY;
module = g_module_open (filename, flags);
if (module == NULL) {