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 */