Disable automatic loading of gstreamer plugins from non bundle locations on mac.

This commit is contained in:
John Maguire 2010-04-19 15:00:33 +00:00
parent 124ca3fe64
commit 9d0541a53b
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ int main(int argc, char *argv[]) {
QString plugin_path = QCoreApplication::applicationDirPath() + "/../PlugIns/gstreamer";
setenv("GST_PLUGIN_SCANNER", scanner_path.toAscii().constData(), 1);
setenv("GST_PLUGIN_PATH", plugin_path.toAscii().constData(), 1);
// Never load plugins from anywhere else.
setenv("GST_PLUGIN_SYSTEM_PATH", plugin_path.toAscii().constData(), 1);
#endif
// Window