1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-03 14:32:16 +02:00

avfilter/af_ladspa: check another directory for plugins

This commit is contained in:
Paul B Mahol 2020-06-21 14:46:29 +02:00
parent 9a24610bf7
commit 842bc312ad

View 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);