From fa5b04f3e56abb277fe25bd8c363079e7a1f1a99 Mon Sep 17 00:00:00 2001 From: columbarius Date: Fri, 20 Nov 2020 18:59:44 +0100 Subject: [PATCH] filter: stop mapping of dmabufs --- src/pipewire/filter.c | 3 +-- src/pipewire/filter.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pipewire/filter.c b/src/pipewire/filter.c index 8c90a40d0..281b1e83d 100644 --- a/src/pipewire/filter.c +++ b/src/pipewire/filter.c @@ -679,8 +679,7 @@ static int impl_port_use_buffers(void *object, if (SPA_FLAG_IS_SET(impl_flags, PW_FILTER_PORT_FLAG_MAP_BUFFERS)) { for (j = 0; j < buffers[i]->n_datas; j++) { struct spa_data *d = &buffers[i]->datas[j]; - if (d->type == SPA_DATA_MemFd || - d->type == SPA_DATA_DmaBuf) { + if (d->type == SPA_DATA_MemFd) { if ((res = map_data(impl, d, prot)) < 0) return res; SPA_FLAG_SET(b->flags, BUFFER_FLAG_MAPPED); diff --git a/src/pipewire/filter.h b/src/pipewire/filter.h index 9a5bb0c14..f3a782751 100644 --- a/src/pipewire/filter.h +++ b/src/pipewire/filter.h @@ -116,7 +116,7 @@ enum pw_filter_flags { enum pw_filter_port_flags { PW_FILTER_PORT_FLAG_NONE = 0, /**< no flags */ - PW_FILTER_PORT_FLAG_MAP_BUFFERS = (1 << 0), /**< mmap the buffers */ + PW_FILTER_PORT_FLAG_MAP_BUFFERS = (1 << 0), /**< mmap the buffers except DmaBuf */ PW_FILTER_PORT_FLAG_ALLOC_BUFFERS = (1 << 1), /**< the application will allocate buffer * memory. In the add_buffer event, the * data of the buffer should be set */