vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Wed Feb 17 20:49:38 2021 +0200| [4f3ebb95b92195b82eea68e2e0510534bf13fec1] | committer: Rémi Denis-Courmont
fluidsynth: search /usr/share/soundfonts (fixes #25742) > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4f3ebb95b92195b82eea68e2e0510534bf13fec1 --- modules/codec/fluidsynth.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/codec/fluidsynth.c b/modules/codec/fluidsynth.c index 2e704097dd..2913781844 100644 --- a/modules/codec/fluidsynth.c +++ b/modules/codec/fluidsynth.c @@ -127,7 +127,10 @@ static int Open (vlc_object_t *p_this) { glob_t gl; - glob ("/usr/share/sounds/sf2/*.sf2", GLOB_NOESCAPE, NULL, &gl); + glob("/usr/share/sounds/sf2/*.sf2", GLOB_NOESCAPE, NULL, &gl); + glob("/usr/share/soundfonts/*.sf2", GLOB_NOESCAPE | GLOB_APPEND, NULL, + &gl); + for (size_t i = 0; i < gl.gl_pathc; i++) { const char *path = gl.gl_pathv[i]; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
