diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-03-23 09:15:38 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-03-27 12:02:21 +0530 |
commit | e80c044cb35a1846338df779a1ae9923f776d538 (patch) | |
tree | d926417f16cd80849c3cb66a60827a4753865dde /ext/ladspa | |
parent | ed84f1791719f29ab9e28668a9c51275419ac3c6 (diff) | |
download | gstreamer-plugins-bad-e80c044cb35a1846338df779a1ae9923f776d538.tar.gz |
ladspa: Fix critical during plugin load on Windows
https://bugzilla.gnome.org/show_bug.cgi?id=794611
Diffstat (limited to 'ext/ladspa')
-rw-r--r-- | ext/ladspa/gstladspa.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c index a8f0fcf02..87b7b605d 100644 --- a/ext/ladspa/gstladspa.c +++ b/ext/ladspa/gstladspa.c @@ -350,8 +350,12 @@ ladspa_plugin_path_search (GstPlugin * plugin) #ifdef G_OS_WIN32 path = g_getenv ("APPDATA"); - if (path) - g_string_append (path, search_path); + if (path) { + if (ladspa_path->len) + g_string_append_printf (ladspa_path, G_SEARCHPATH_SEPARATOR_S "%s", path); + else + g_string_append (ladspa_path, path); + } path = g_getenv ("COMMONPROGRAMFILES"); if (path) { |