From: Tanu Kaskinen Date: Wed, 26 Aug 2009 11:19:11 +0000 (+0300) Subject: dbusiface-stream: Only send stream event signals from the right D-Bus objects. X-Git-Tag: 1.0_branch~1178^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11fcc8c85f15dba8e78dffb88b3d0d04ebc329e1;p=profile%2Fivi%2Fpulseaudio.git dbusiface-stream: Only send stream event signals from the right D-Bus objects. --- diff --git a/src/modules/dbus/iface-stream.c b/src/modules/dbus/iface-stream.c index 354ca6e..183625b 100644 --- a/src/modules/dbus/iface-stream.c +++ b/src/modules/dbus/iface-stream.c @@ -786,11 +786,17 @@ static pa_hook_result_t send_event_cb(void *hook_data, void *call_data, void *sl if (s->type == STREAM_TYPE_PLAYBACK) { pa_sink_input_send_event_hook_data *data = call_data; + if (data->sink_input != s->sink_input) + return PA_HOOK_OK; + name = data->event; property_list = data->data; } else { pa_source_output_send_event_hook_data *data = call_data; + if (data->source_output != s->source_output) + return PA_HOOK_OK; + name = data->event; property_list = data->data; }