mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
shmsink: Allocate enough memory to do alignment
https://bugzilla.gnome.org/show_bug.cgi?id=731093
This commit is contained in:
parent
b44724f662
commit
db09922842
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ gst_shm_sink_allocator_alloc_locked (GstShmSinkAllocator * self, gsize size,
|
|||
/* allocate more to compensate for alignment */
|
||||
maxsize += align;
|
||||
|
||||
block = sp_writer_alloc_block (self->sink->pipe, size);
|
||||
block = sp_writer_alloc_block (self->sink->pipe, maxsize);
|
||||
if (block) {
|
||||
GstShmSinkMemory *mymem;
|
||||
gsize aoffset, padding;
|
||||
|
|
Loading…
Reference in a new issue