modules: the combined streams are always async

We never trigger processing from their callbacks in all cases so they
need one extra buffer.
This commit is contained in:
Wim Taymans 2023-10-16 10:42:39 +02:00
parent 840a9487a4
commit d2b6a76798

View file

@ -810,7 +810,8 @@ static int create_stream(struct stream_info *info)
flags = PW_STREAM_FLAG_AUTOCONNECT |
PW_STREAM_FLAG_MAP_BUFFERS |
PW_STREAM_FLAG_RT_PROCESS;
PW_STREAM_FLAG_RT_PROCESS |
PW_STREAM_FLAG_ASYNC;
if (impl->mode == MODE_SINK || impl->mode == MODE_CAPTURE) {
direction = PW_DIRECTION_OUTPUT;
@ -818,7 +819,6 @@ static int create_stream(struct stream_info *info)
} else {
direction = PW_DIRECTION_INPUT;
s->stream_events.process = stream_input_process;
flags |= PW_STREAM_FLAG_ASYNC;
}
pw_stream_add_listener(s->stream,