mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
sink,source: Add a helper function to check whether this is a filter
This commit is contained in:
parent
5adb126259
commit
81f7589a3f
5 changed files with 22 additions and 4 deletions
|
|
@ -356,7 +356,7 @@ static void find_filters_for_module(struct userdata *u, pa_module *m, const char
|
|||
|
||||
PA_IDXSET_FOREACH(sink, u->core->sinks, idx) {
|
||||
if (sink->module == m) {
|
||||
pa_assert(sink->input_to_master != NULL);
|
||||
pa_assert(pa_sink_is_filter(sink));
|
||||
|
||||
fltr = filter_new(name, sink->input_to_master->sink, NULL);
|
||||
fltr->module_index = m->index;
|
||||
|
|
@ -368,7 +368,7 @@ static void find_filters_for_module(struct userdata *u, pa_module *m, const char
|
|||
|
||||
PA_IDXSET_FOREACH(source, u->core->sources, idx) {
|
||||
if (source->module == m && !source->monitor_of) {
|
||||
pa_assert(source->output_from_master != NULL);
|
||||
pa_assert(pa_source_is_filter(source));
|
||||
|
||||
if (!fltr) {
|
||||
fltr = filter_new(name, NULL, source->output_from_master->source);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue