mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
`fd_map` structures are allocated in a `pw_array`. When inserting into a full `pw_array`, it is resized to accomodate the new elements. In that case, all `fd_map` pointers may be invalidated. Hence it is only safe to access `fd_map` structs while holding `globals.lock`, which prevents any modifications to the fd map array, thus keeping the references valid. |
||
|---|---|---|
| .. | ||
| meson.build | ||
| pipewire-v4l2.c | ||
| pipewire-v4l2.h | ||
| pw-v4l2.in | ||
| v4l2-func.c | ||