diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-03-28 01:01:32 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-03-28 01:26:07 +0530 |
commit | 5e9e0d50863b60c329cfc8ab85164fe7f7111532 (patch) | |
tree | e9fe0ec4f2d982e6440755efedd83884f6b1adcb | |
parent | f1a36e84a7360daced67749577b1d0872b600383 (diff) | |
download | pulseaudio-5e9e0d50863b60c329cfc8ab85164fe7f7111532.tar.gz |
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.
-rw-r--r-- | src/pulse/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulse/stream.c b/src/pulse/stream.c index 6115cefb3..39338c1d1 100644 --- a/src/pulse/stream.c +++ b/src/pulse/stream.c @@ -112,7 +112,7 @@ static pa_stream *pa_stream_new_with_proplist_internal( if (ss) s->sample_spec = *ss; else - s->sample_spec.format = PA_SAMPLE_INVALID; + pa_sample_spec_init(&s->sample_spec); if (map) s->channel_map = *map; |