mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
stream: stop mapping of dmabufs
This commit is contained in:
parent
0b33185593
commit
b0e9852628
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_STREAM_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);
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@ enum pw_stream_flags {
|
|||
PW_STREAM_FLAG_INACTIVE = (1 << 1), /**< start the stream inactive,
|
||||
* pw_stream_set_active() needs to be
|
||||
* called explicitly */
|
||||
PW_STREAM_FLAG_MAP_BUFFERS = (1 << 2), /**< mmap the buffers */
|
||||
PW_STREAM_FLAG_MAP_BUFFERS = (1 << 2), /**< mmap the buffers except DmaBuf */
|
||||
PW_STREAM_FLAG_DRIVER = (1 << 3), /**< be a driver */
|
||||
PW_STREAM_FLAG_RT_PROCESS = (1 << 4), /**< call process from the realtime
|
||||
* thread. You MUST use RT safe functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue