plugin: Also look at GST_PLUGIN_PATH_1_0

This commit is contained in:
Olivier Crête 2017-05-21 16:56:16 +02:00 committed by Guillaume Desmottes
parent efbce60285
commit adca3bf8f7

View file

@ -146,7 +146,9 @@ gst_python_plugin_load (GstPlugin * plugin)
/* Mimic the order in which the registry is checked in core */ /* Mimic the order in which the registry is checked in core */
/* 1. check env_variable GST_PLUGIN_PATH */ /* 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) { if (plugin_path) {
char **list; char **list;
int i; int i;
@ -164,7 +166,9 @@ gst_python_plugin_load (GstPlugin * plugin)
} }
/* 2. Check for GST_PLUGIN_SYSTEM_PATH */ /* 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) { if (plugin_path == NULL) {
char *home_plugins; char *home_plugins;