xvimagsink: fix failure to allocate large shared memory blocks
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 4 Apr 2014 11:32:14 +0000 (12:32 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 3 Apr 2015 10:18:46 +0000 (11:18 +0100)
commit964ea678dafcf4c2ad022e4c6f9948e3cec902fa
tree61d5259aaac17b739413d63498ae8cdd3714aec0
parent3fd184da7811ba7073016316cfaa2d0a21d8c1c7
xvimagsink: fix failure to allocate large shared memory blocks

A previous patch increased allocations by 15 bytes in order to ensure
16 byte alignment for g_malloc blocks. However, shared memory is
already block aligned, and this extra 15 bytes caused allocation
to fail when we were already allocating to the shared memory limit,
which is a lot smaller than typical available RAM.

Fix this by removing the alignment slack when allocating shared
memory.

https://bugzilla.gnome.org/show_bug.cgi?id=706066
sys/xvimage/xvimageallocator.c