]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 8298296df3cc5fc3f42006a09abe5d0569725138..2ab6c178329b76066f09dd71180b2f93ede2d710 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 */