[pulseaudio-discuss] stream_started_callback userdata bug

Arthur Taylor theycallhimart at gmail.com
Tue Sep 9 20:28:20 PDT 2008


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:

diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index d0c7d67..a832b44 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -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);

-- 
Arthur Taylor <theycallhimart at gmail.com>




More information about the pulseaudio-discuss mailing list