pipewire/src/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
..
audio-capture.c stream: pass properties to context_new 2023-11-24 10:12:49 +01:00
audio-dsp-filter.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
audio-dsp-src.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
audio-src.c stream: check requested before use 2023-11-30 11:10:47 +01:00
bluez-session.c stream: add pw_stream_get_nsec() to get current time 2024-03-04 12:59:26 +01:00
export-sink.c examples: fix mapoffset in examples 2024-06-13 10:11:29 +02:00
export-source.c examples: fix mapoffset in examples 2024-06-13 10:11:29 +02:00
export-spa-device.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
export-spa.c core: add bound_props event 2023-03-21 17:22:27 +01:00
internal.c examples: add another example 2023-06-06 19:50:58 +02:00
local-v4l2.c examples: fix mapoffset in examples 2024-06-13 10:11:29 +02:00
meson.build examples: add MIDI example 2024-02-24 20:47:05 +02:00
midi-src.c examples: add MIDI example 2024-02-24 20:47:05 +02:00
sdl.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
video-dsp-play.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
video-dsp-src.c stream: add pw_stream_get_nsec() to get current time 2024-03-04 12:59:26 +01:00
video-play-fixate.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
video-play-pull.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
video-play-reneg.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
video-play.c examples: add some more debug to video-play 2024-03-22 11:31:05 +01:00
video-src-alloc.c examples: set the MAPPABLE flag for MemFd 2024-04-02 12:28:01 +02:00
video-src-fixate.c examples: set the MAPPABLE flag for MemFd 2024-04-02 12:28:01 +02:00
video-src-reneg.c examples: set the MAPPABLE flag for MemFd 2024-04-02 12:28:01 +02:00
video-src.c stream: add pw_stream_get_nsec() to get current time 2024-03-04 12:59:26 +01:00