mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
sink,source: Handle missing in the shared volume case
This makes sure that when we're traversing the device chain for sources and sinks with shared volume, we handle the case that a sink-input or source-output of one of these might be unlinked (while unloading a module, for example).
This commit is contained in:
parent
fde703be75
commit
cae3235369
6 changed files with 74 additions and 32 deletions
|
|
@ -339,6 +339,9 @@ int pa_source_suspend_all(pa_core *c, pa_bool_t suspend, pa_suspend_cause_t caus
|
|||
/* Use this instead of checking s->flags & PA_SOURCE_FLAT_VOLUME directly. */
|
||||
pa_bool_t pa_source_flat_volume_enabled(pa_source *s);
|
||||
|
||||
/* Get the master source when sharing volumes */
|
||||
pa_source *pa_source_get_master(pa_source *s);
|
||||
|
||||
/* Is the source in passthrough mode? (that is, is this a monitor source for a sink
|
||||
* that has a passthrough sink input connected to it. */
|
||||
pa_bool_t pa_source_is_passthrough(pa_source *s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue