pipewire/spa/examples
Wim Taymans 9592b0af2a examples: fix mapoffset in examples
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.
2024-06-13 10:11:29 +02:00
..
adapter-control.c treewide: fix some format string issues 2024-04-25 07:24:10 +00:00
example-control.c treewide: mark some functions static 2023-07-03 19:40:31 +02:00
local-libcamera.c examples: fix mapoffset in examples 2024-06-13 10:11:29 +02:00
local-v4l2.c examples: fix mapoffset in examples 2024-06-13 10:11:29 +02:00
meson.build meson: fix compilation when spa-plugins is disabled 2024-02-06 11:50:54 +01:00