mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
parent
c94d5d9d34
commit
6fefd49a8a
2 changed files with 9 additions and 3 deletions
|
|
@ -2575,10 +2575,14 @@ static int client_node_port_use_buffers(void *data,
|
|||
return -ENOSPC;
|
||||
}
|
||||
|
||||
if (p->object->port.type_id == TYPE_ID_VIDEO && direction == SPA_DIRECTION_INPUT) {
|
||||
fl = PW_MEMMAP_FLAG_READ;
|
||||
if (direction == SPA_DIRECTION_INPUT) {
|
||||
if (p->object->port.type_id == TYPE_ID_VIDEO) {
|
||||
fl = PW_MEMMAP_FLAG_READ;
|
||||
} else {
|
||||
/* some apps write to the input buffer so we want everything readwrite */
|
||||
fl = PW_MEMMAP_FLAG_READWRITE | PW_MEMMAP_FLAG_PRIVATE;
|
||||
}
|
||||
} else {
|
||||
/* some apps write to the input buffer so we want everything readwrite */
|
||||
fl = PW_MEMMAP_FLAG_READWRITE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue