plugin: Also look at GST_PLUGIN_PATH_1_0
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Sun, 21 May 2017 14:56:16 +0000 (16:56 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Tue, 7 Jan 2020 05:12:36 +0000 (10:42 +0530)
plugin/gstpythonplugin.c

index df42bac..9b31581 100644 (file)
@@ -146,7 +146,9 @@ gst_python_plugin_load (GstPlugin * plugin)
   /* Mimic the order in which the registry is checked in core */
 
   /* 1. check env_variable GST_PLUGIN_PATH */
-  plugin_path = g_getenv ("GST_PLUGIN_PATH");
+  plugin_path = g_getenv ("GST_PLUGIN_PATH_1_0");
+  if (plugin_path == NULL)
+    plugin_path = g_getenv ("GST_PLUGIN_PATH");
   if (plugin_path) {
     char **list;
     int i;
@@ -164,7 +166,9 @@ gst_python_plugin_load (GstPlugin * plugin)
   }
 
   /* 2. Check for GST_PLUGIN_SYSTEM_PATH */
-  plugin_path = g_getenv ("GST_PLUGIN_SYSTEM_PATH");
+  plugin_path = g_getenv ("GST_PLUGIN_SYSTEM_PATH_1_0");
+  if (plugin_path == NULL)
+    plugin_path = g_getenv ("GST_PLUGIN_SYSTEM_PATH");
   if (plugin_path == NULL) {
     char *home_plugins;