diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-06-21 14:46:29 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-06-21 14:48:27 +0200 |
commit | 842bc312ade8fab82465423b22c4fbe3bee63383 (patch) | |
tree | 20fc215f08195eafbefc4c72c9bcea14444680ee | |
parent | 9a24610bf78cc1351d4e9d38e3ac0d631037f5aa (diff) | |
download | ffmpeg-842bc312ade8fab82465423b22c4fbe3bee63383.tar.gz |
avfilter/af_ladspa: check another directory for plugins
-rw-r--r-- | libavfilter/af_ladspa.c | 5 |
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); |