[vlc-commits] aout: get audio-resampler value explicitly
Rémi Denis-Courmont
git at videolan.org
Tue Jan 30 20:45:21 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jan 30 21:19:45 2018 +0200| [eda670d9ec1f94fd832fc27daa2e2e84c170b536] | committer: Rémi Denis-Courmont
aout: get audio-resampler value explicitly
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eda670d9ec1f94fd832fc27daa2e2e84c170b536
---
src/audio_output/filters.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/audio_output/filters.c b/src/audio_output/filters.c
index 585379e7c3..af06bec043 100644
--- a/src/audio_output/filters.c
+++ b/src/audio_output/filters.c
@@ -101,8 +101,11 @@ static filter_t *FindResampler (vlc_object_t *obj,
const audio_sample_format_t *infmt,
const audio_sample_format_t *outfmt)
{
- return CreateFilter (obj, "audio resampler", "$audio-resampler", NULL,
- infmt, outfmt, NULL, true);
+ char *modlist = var_InheritString(obj, "audio-resampler");
+ filter_t *filter = CreateFilter (obj, "audio resampler", modlist, NULL,
+ infmt, outfmt, NULL, true);
+ free(modlist);
+ return filter;
}
/**
More information about the vlc-commits
mailing list