mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-11-05 16:26:16 +00:00
9592b0af2a
The mapoffset should be using in the mmap call as the offset. Mapping the whole memory before the offset and then ignoring the part before it seems like it can work but it actually has some problems: 1. some drivers (v4l2) use the mapoffset to calculate the buffer to map 2. we waste resources for mapped but unused pages. The problem with the mapoffset is that it needs to be page aligned and that used to be a problem in the past. Nowadays PipeWire no longer set the mapoffset for any of the memory that it allocates. |
||
---|---|---|
.. | ||
adapter-control.c | ||
example-control.c | ||
local-libcamera.c | ||
local-v4l2.c | ||
meson.build |