mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
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:
parent
840a9487a4
commit
d2b6a76798
1 changed files with 2 additions and 2 deletions
|
|
@ -810,7 +810,8 @@ static int create_stream(struct stream_info *info)
|
||||||
|
|
||||||
flags = PW_STREAM_FLAG_AUTOCONNECT |
|
flags = PW_STREAM_FLAG_AUTOCONNECT |
|
||||||
PW_STREAM_FLAG_MAP_BUFFERS |
|
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) {
|
if (impl->mode == MODE_SINK || impl->mode == MODE_CAPTURE) {
|
||||||
direction = PW_DIRECTION_OUTPUT;
|
direction = PW_DIRECTION_OUTPUT;
|
||||||
|
|
@ -818,7 +819,6 @@ static int create_stream(struct stream_info *info)
|
||||||
} else {
|
} else {
|
||||||
direction = PW_DIRECTION_INPUT;
|
direction = PW_DIRECTION_INPUT;
|
||||||
s->stream_events.process = stream_input_process;
|
s->stream_events.process = stream_input_process;
|
||||||
flags |= PW_STREAM_FLAG_ASYNC;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pw_stream_add_listener(s->stream,
|
pw_stream_add_listener(s->stream,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue