combine-sink: Set origin_sink for each output stream

While the threading model for combine is different from other filters
(which expect to just piggy-back on the I/O thread of the most
downstream sink), it might still be valuable to set this field to
indicate that this sink input is intended to behave as a filter stream
rather than a conventional stream.

At the very least, routing behaviour and cycle detection should act on
these streams as with any other filter.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/399>
This commit is contained in:
Arun Raghavan 2020-10-26 11:46:37 -04:00 committed by PulseAudio Marge Bot
parent 19adddee31
commit 404795ad05

View file

@ -998,6 +998,7 @@ static int output_create_sink_input(struct output *o) {
data.module = u->module;
data.resample_method = u->resample_method;
data.flags = PA_SINK_INPUT_VARIABLE_RATE|PA_SINK_INPUT_DONT_MOVE|PA_SINK_INPUT_NO_CREATE_ON_SUSPEND;
data.origin_sink = u->sink;
pa_sink_input_new(&o->sink_input, u->core, &data);