mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-22 06:59:59 -05:00
Since gst_fd_allocator_alloc lazy mmap's the buffer to the assigned file descriptor we can get downstream mmap failures if the pipewire src(such as the v4l2 spa plugin) closes the file descriptor before it gets mmap'd. To prevent the closed original file descriptor from causing a mmap failure dup the file descriptor so that the original being closed doesn't invalidate the descriptor passed to gst_fd_allocator_alloc. Add some more validation to dequeue_buffer as well. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> |
||
|---|---|---|
| .. | ||
| .editorconfig | ||
| gstpipewire.c | ||
| gstpipewireclock.c | ||
| gstpipewireclock.h | ||
| gstpipewirecore.c | ||
| gstpipewirecore.h | ||
| gstpipewiredeviceprovider.c | ||
| gstpipewiredeviceprovider.h | ||
| gstpipewireformat.c | ||
| gstpipewireformat.h | ||
| gstpipewirepool.c | ||
| gstpipewirepool.h | ||
| gstpipewiresink.c | ||
| gstpipewiresink.h | ||
| gstpipewiresrc.c | ||
| gstpipewiresrc.h | ||
| meson.build | ||