jack: don't use private flag

Some input buffers are also used as output buffers in case of
feedback.
This commit is contained in:
Wim Taymans 2019-09-10 11:56:25 +02:00
parent 35bf6bfa5c
commit ad086e3349

View file

@ -1396,9 +1396,8 @@ static int client_node_port_use_buffers(void *object,
port_id, mix_id, n_buffers); port_id, mix_id, n_buffers);
/* some apps write to the input buffer so we want everything writable /* some apps write to the input buffer so we want everything readwrite */
* but for input buffers, the changes are private */ fl = PW_MEMMAP_FLAG_READWRITE;
fl = PW_MEMMAP_FLAG_READWRITE | (direction == SPA_DIRECTION_INPUT ? PW_MEMMAP_FLAG_PRIVATE : 0);
/* clear previous buffers */ /* clear previous buffers */
clear_buffers(c, mix); clear_buffers(c, mix);