[pulseaudio-commits] src/pulse

Arun Raghavan arun at kemper.freedesktop.org
Tue Mar 27 13:00:21 PDT 2012


 src/pulse/stream.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5e9e0d50863b60c329cfc8ab85164fe7f7111532
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date:   Wed Mar 28 01:01:32 2012 +0530

    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.

diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index 6115cef..39338c1 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;



More information about the pulseaudio-commits mailing list