mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
gstreamer1: Use lazy symbol binding to load plugins
Signed-off-by: Ted Hess <thess@kitschensync.net>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=gstreamer1
|
PKG_NAME:=gstreamer1
|
||||||
PKG_VERSION:=1.4.4
|
PKG_VERSION:=1.4.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
--- a/gst/gstplugin.c
|
||||||
|
+++ b/gst/gstplugin.c
|
||||||
|
@@ -723,15 +723,8 @@ gst_plugin_load_file (const gchar * file
|
||||||
|
goto return_error;
|
||||||
|
}
|
||||||
|
|
||||||
|
- 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) {
|
||||||
Reference in New Issue
Block a user