ASR_BASE

Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/multimedia/gstreamer1/patches/010-gstplugin-use-lazy-symbol-binding.patch b/external/subpack/multimedia/gstreamer1/patches/010-gstplugin-use-lazy-symbol-binding.patch
new file mode 100644
index 0000000..7b6db17
--- /dev/null
+++ b/external/subpack/multimedia/gstreamer1/patches/010-gstplugin-use-lazy-symbol-binding.patch
@@ -0,0 +1,20 @@
+--- a/gst/gstplugin.c
++++ b/gst/gstplugin.c
+@@ -862,15 +862,8 @@ _priv_gst_plugin_load_file_for_registry
+   }
+ #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) {