stream: Fix sample spec initialisation for extended API
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 27 Mar 2012 19:31:32 +0000 (01:01 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 27 Mar 2012 19:56:07 +0000 (01:26 +0530)
commit5e9e0d50863b60c329cfc8ab85164fe7f7111532
treee9fe0ec4f2d982e6440755efedd83884f6b1adcb
parentf1a36e84a7360daced67749577b1d0872b600383
stream: Fix sample spec initialisation for extended API

This fixes pa_sample_spec init to use the correct API. Not doing so
triggers a valgrind warning as we call pa_sample_spec_valid() on this
later on, which checks the rate and channels fields. Thanks to RĂ©mi
Denis-Courmont for reporting this.
src/pulse/stream.c