summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2017-05-21 16:56:16 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-01-07 10:42:36 +0530
commitadca3bf8f78bcf06543568c151f622c03e291d2d (patch)
treebb984b86edbc96094bfed202038cd083bc4cf9c5
parentefbce60285fa52c6a71d8e1e9f5ecd4d0ce88852 (diff)
plugin: Also look at GST_PLUGIN_PATH_1_0
-rw-r--r--plugin/gstpythonplugin.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugin/gstpythonplugin.c b/plugin/gstpythonplugin.c
index df42bac..9b31581 100644
--- a/plugin/gstpythonplugin.c
+++ b/plugin/gstpythonplugin.c
@@ -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;