mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
sink, source: Send notifications when flags change
The hooks aren't currently used, but for example, the D-Bus protocol could use them if it implemented flag change signals.
This commit is contained in:
parent
ed51769a59
commit
4096989ad6
3 changed files with 8 additions and 0 deletions
|
|
@ -784,6 +784,9 @@ void pa_sink_update_flags(pa_sink *s, pa_sink_flags_t mask, pa_sink_flags_t valu
|
|||
pa_log_debug("Sink %s: DYNAMIC_LATENCY flag %s.",
|
||||
s->name, (s->flags & PA_SINK_DYNAMIC_LATENCY) ? "enabled" : "disabled");
|
||||
|
||||
pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK | PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
|
||||
pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_FLAGS_CHANGED], s);
|
||||
|
||||
if (s->monitor_source)
|
||||
pa_source_update_flags(s->monitor_source,
|
||||
((mask & PA_SINK_LATENCY) ? PA_SOURCE_LATENCY : 0) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue