pipewire/src/gst
James Hilliard 64e8dee3a7 gst: dup buffer file descriptor before allocating
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>
2022-06-02 06:44:10 +00:00
..
.editorconfig add .editorconfig files 2019-02-13 11:19:21 +01:00
gstpipewire.c treewide: only define feature macros when the feature is available 2022-02-04 00:15:59 +01:00
gstpipewireclock.c meson.build: drop HAVE_CONFIG_H 2021-06-10 09:04:16 +10:00
gstpipewireclock.h gst: replace tabs with spaces 2019-12-19 15:42:42 +01:00
gstpipewirecore.c Cleanup argument names in methods and events interfaces 2022-04-15 10:11:49 +02:00
gstpipewirecore.h gst: add 30 seconds timeout 2021-09-16 10:05:58 +02:00
gstpipewiredeviceprovider.c gst: use target.object instead of node.target, soft-deprecate ids 2022-03-06 18:34:47 +00:00
gstpipewiredeviceprovider.h gst: use target.object instead of node.target, soft-deprecate ids 2022-03-06 18:34:47 +00:00
gstpipewireformat.c pipewiresink: set a default channel map if the number of channels is fixed 2022-02-03 15:10:25 +02:00
gstpipewireformat.h gst: replace tabs with spaces 2019-12-19 15:42:42 +01:00
gstpipewirepool.c gst: dup buffer file descriptor before allocating 2022-06-02 06:44:10 +00:00
gstpipewirepool.h gst: dequeue a shared buffer instead of original pool buffer 2022-06-01 04:09:59 -06:00
gstpipewiresink.c gst: dequeue a shared buffer instead of original pool buffer 2022-06-01 04:09:59 -06:00
gstpipewiresink.h gst: use target.object instead of node.target, soft-deprecate ids 2022-03-06 18:34:47 +00:00
gstpipewiresrc.c gst: dup buffer file descriptor before allocating 2022-06-02 06:44:10 +00:00
gstpipewiresrc.h gst: use target.object instead of node.target, soft-deprecate ids 2022-03-06 18:34:47 +00:00
meson.build treewide: meson.build: use feature.allowed() 2022-02-04 00:15:59 +01:00