mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
dbusiface-stream: Only send stream event signals from the right D-Bus objects.
This commit is contained in:
parent
edf80104e3
commit
11fcc8c85f
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue