plugins/screencast: Unset spa_data::data for memfd buffers
The data pointer should be set mainly for SPA_DATA_MemPtr.
This commit is contained in:
parent
17c857ce66
commit
693603d87a
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ MemFdScreenCastBuffer *MemFdScreenCastBuffer::create(pw_buffer *pwBuffer, const
|
|||
spaData->mapoffset = 0;
|
||||
spaData->maxsize = attributes->stride * attributes->size.height();
|
||||
spaData->fd = attributes->fd.get();
|
||||
spaData->data = view.image()->bits();
|
||||
spaData->data = nullptr;
|
||||
spaData->chunk->offset = 0;
|
||||
spaData->chunk->size = spaData->maxsize;
|
||||
spaData->chunk->stride = attributes->stride;
|
||||
|
|
Loading…
Reference in a new issue