mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
modules: add ASYNC flag
Add ASYNC flags for the streams that don't dequeue/queue in the realtime process function so that an extra buffer is allocated.
This commit is contained in:
parent
1466982c60
commit
39165a8471
3 changed files with 5 additions and 2 deletions
|
|
@ -818,6 +818,7 @@ 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,
|
||||
|
|
|
|||
|
|
@ -1255,7 +1255,8 @@ static int setup_streams(struct impl *impl)
|
|||
PW_ID_ANY,
|
||||
PW_STREAM_FLAG_AUTOCONNECT |
|
||||
PW_STREAM_FLAG_MAP_BUFFERS |
|
||||
PW_STREAM_FLAG_RT_PROCESS,
|
||||
PW_STREAM_FLAG_RT_PROCESS |
|
||||
PW_STREAM_FLAG_ASYNC,
|
||||
params, n_params);
|
||||
|
||||
spa_pod_dynamic_builder_clean(&b);
|
||||
|
|
|
|||
|
|
@ -490,7 +490,8 @@ static int setup_streams(struct impl *impl)
|
|||
PW_ID_ANY,
|
||||
PW_STREAM_FLAG_AUTOCONNECT |
|
||||
PW_STREAM_FLAG_MAP_BUFFERS |
|
||||
PW_STREAM_FLAG_RT_PROCESS,
|
||||
PW_STREAM_FLAG_RT_PROCESS |
|
||||
PW_STREAM_FLAG_ASYNC,
|
||||
params, n_params)) < 0)
|
||||
return res;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue