From 35bf6bfa5c3969b65e63dbfe48578c5c040849d4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 10 Sep 2019 09:58:36 +0200 Subject: [PATCH] jack: map buffer readwrite and private for input qtractor writes to the input buffer so make them writable but with a private mapping. --- src/pipewire-jack.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pipewire-jack.c b/src/pipewire-jack.c index 32e7fd6c4..e7ef14245 100644 --- a/src/pipewire-jack.c +++ b/src/pipewire-jack.c @@ -1395,7 +1395,10 @@ static int client_node_port_use_buffers(void *object, pw_log_debug(NAME" %p: port %p %d %d.%d use_buffers %d", c, p, direction, port_id, mix_id, n_buffers); - fl = PW_MEMMAP_FLAG_READ | (direction == SPA_DIRECTION_OUTPUT ? PW_MEMMAP_FLAG_WRITE : 0); + + /* some apps write to the input buffer so we want everything writable + * but for input buffers, the changes are private */ + fl = PW_MEMMAP_FLAG_READWRITE | (direction == SPA_DIRECTION_INPUT ? PW_MEMMAP_FLAG_PRIVATE : 0); /* clear previous buffers */ clear_buffers(c, mix);