]> code.delx.au - pulseaudio/commitdiff
stream_started_callback userdata bug
authorArthur Taylor <theycallhimart@gmail.com>
Wed, 10 Sep 2008 03:28:20 +0000 (20:28 -0700)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Sep 2008 09:18:36 +0000 (12:18 +0300)
Hello

I came across a bug where the userdata parameter of the
stream_started_callback was always NULL in some cases. I couldn't seem
to make a ticket, so here's the one line patch:

Signed-off-by: Lennart Poettering <lennart@poettering.net>
src/pulse/stream.c

index 5be600726cc63c3a14d8d479f5ea2686d3c1ae87..6890b7a14f8200f511a9207f83dc0fcab370b277 100644 (file)
@@ -557,7 +557,7 @@ void pa_command_stream_started(pa_pdispatch *pd, uint32_t command, uint32_t tag,
     request_auto_timing_update(s, TRUE);
 
     if (s->started_callback)
-        s->started_callback(s, s->suspended_userdata);
+        s->started_callback(s, s->started_userdata);
 
 finish:
     pa_context_unref(c);