gstreamer: GST_PLUGIN_SYSTEM_PATH.* may be undefined

This commit is contained in:
John Ericson 2019-11-07 16:31:55 -05:00
parent 12a85a7046
commit 908b143e51
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
addGstreamer1LibPath () { addGstreamer1LibPath () {
if test -d "$1/lib/gstreamer-1.0" if test -d "$1/lib/gstreamer-1.0"
then then
export GST_PLUGIN_SYSTEM_PATH_1_0="${GST_PLUGIN_SYSTEM_PATH_1_0}${GST_PLUGIN_SYSTEM_PATH_1_0:+:}$1/lib/gstreamer-1.0" export GST_PLUGIN_SYSTEM_PATH_1_0="${GST_PLUGIN_SYSTEM_PATH_1_0-}${GST_PLUGIN_SYSTEM_PATH_1_0:+:}$1/lib/gstreamer-1.0"
fi fi
} }

View file

@ -1,7 +1,7 @@
addGstreamerLibPath () { addGstreamerLibPath () {
if test -d "$1/lib/gstreamer-0.10" if test -d "$1/lib/gstreamer-0.10"
then then
export GST_PLUGIN_SYSTEM_PATH="${GST_PLUGIN_SYSTEM_PATH}${GST_PLUGIN_SYSTEM_PATH:+:}$1/lib/gstreamer-0.10" export GST_PLUGIN_SYSTEM_PATH="${GST_PLUGIN_SYSTEM_PATH-}${GST_PLUGIN_SYSTEM_PATH:+:}$1/lib/gstreamer-0.10"
fi fi
} }