ladspa: Fix critical during plugin load on Windows

https://bugzilla.gnome.org/show_bug.cgi?id=794611
This commit is contained in:
Nirbheek Chauhan 2018-03-23 09:15:38 +05:30
parent ed84f17917
commit e80c044cb3

View file

@ -350,8 +350,12 @@ ladspa_plugin_path_search (GstPlugin * plugin)
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
path = g_getenv ("APPDATA"); path = g_getenv ("APPDATA");
if (path) if (path) {
g_string_append (path, search_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"); path = g_getenv ("COMMONPROGRAMFILES");
if (path) { if (path) {