Set channels and samplerate of the filter chain
authorAndre Noll <maan@systemlinux.org>
Tue, 6 Oct 2009 21:25:23 +0000 (23:25 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 18 Nov 2009 18:34:11 +0000 (19:34 +0100)
wmadec_filter.c

index 8298296..2ab6c17 100644 (file)
@@ -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 */