ladspa: Fix critical during plugin load on Windows
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 23 Mar 2018 03:45:38 +0000 (09:15 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Tue, 27 Mar 2018 06:32:21 +0000 (12:02 +0530)
https://bugzilla.gnome.org/show_bug.cgi?id=794611

ext/ladspa/gstladspa.c

index a8f0fcf..87b7b60 100644 (file)
@@ -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) {