mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
filter: stop mapping of dmabufs
This commit is contained in:
parent
b0e9852628
commit
fa5b04f3e5
2 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue