blob: 7b6db170ac495dcfca975226df0f14dfb988a909 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/gst/gstplugin.c
2+++ b/gst/gstplugin.c
3@@ -862,15 +862,8 @@ _priv_gst_plugin_load_file_for_registry
4 }
5 #endif
6
7- flags = G_MODULE_BIND_LOCAL;
8- /* libgstpython.so is the gst-python plugin loader. It needs to be loaded with
9- * G_MODULE_BIND_LAZY.
10- *
11- * Ideally there should be a generic way for plugins to specify that they
12- * need to be loaded with _LAZY.
13- * */
14- if (strstr (filename, "libgstpython"))
15- flags |= G_MODULE_BIND_LAZY;
16+ // No need to resolve all bindings until referenced
17+ flags = G_MODULE_BIND_LOCAL | G_MODULE_BIND_LAZY;
18
19 module = g_module_open (filename, flags);
20 if (module == NULL) {