From 25c6a5340fbcba912bea4b949631f4dd767f7888 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 6 Oct 2009 23:25:23 +0200 Subject: [PATCH] Set channels and samplerate of the filter chain --- wmadec_filter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wmadec_filter.c b/wmadec_filter.c index 8298296d..2ab6c178 100644 --- a/wmadec_filter.c +++ b/wmadec_filter.c @@ -1286,6 +1286,8 @@ static ssize_t wmadec_convert(char *inbuffer, size_t len, if (ret <= 0) return ret; fn->private_data = pwd; + fn->fc->channels = pwd->ahi.channels; + fn->fc->samplerate = pwd->ahi.sample_rate; return pwd->ahi.header_len; } /* skip 31 bytes */ -- 2.39.5