Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-06-21 15:46:29 +0300
committerPaul B Mahol <onemda@gmail.com>2020-06-21 15:48:27 +0300
commit842bc312ade8fab82465423b22c4fbe3bee63383 (patch)
tree20fc215f08195eafbefc4c72c9bcea14444680ee /libavfilter
parent9a24610bf78cc1351d4e9d38e3ac0d631037f5aa (diff)
avfilter/af_ladspa: check another directory for plugins
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/af_ladspa.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/af_ladspa.c b/libavfilter/af_ladspa.c
index a8562fc073..68537c5029 100644
--- a/libavfilter/af_ladspa.c
+++ b/libavfilter/af_ladspa.c
@@ -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);