avfilter/af_ladspa: check another directory for plugins
authorPaul B Mahol <onemda@gmail.com>
Sun, 21 Jun 2020 12:46:29 +0000 (14:46 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sun, 21 Jun 2020 12:48:27 +0000 (14:48 +0200)
libavfilter/af_ladspa.c

index a8562fc..68537c5 100644 (file)
@@ -426,6 +426,11 @@ static av_cold int init(AVFilterContext *ctx)
         }
 
         av_free(paths);
+        if (!s->dl_handle && (paths = av_asprintf("%s/.ladspa", getenv("HOME")))) {
+            s->dl_handle = try_load(paths, s->dl_name);
+            av_free(paths);
+        }
+
         if (!s->dl_handle && (paths = av_asprintf("%s/.ladspa/lib", getenv("HOME")))) {
             s->dl_handle = try_load(paths, s->dl_name);
             av_free(paths);