Skip to content

GstShmAllocator: Map/unmap full buffer when padding is added

When allocating buffers with alignment parameters specified, it may be necessary to overallocate memory to adjust to the requested alignment. Previously the padding length was not included in the mmaped buffer size, leaving unmapped bytes at the end of the buffer. This caused intermittent SEGV faults and valgrind failures when running the wayland_threads example.

Merge request reports