buffer: allow configurable memory alignment. Fixes #596832
authorStefan Kost <ensonic@users.sf.net>
Thu, 4 Mar 2010 08:44:52 +0000 (10:44 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 11 Mar 2010 08:00:28 +0000 (10:00 +0200)
commita184419ec5514a9fe804e69cf8bc51eba08b6f84
treecc5d8fb7145559641702bdffd6d7bec3f612499f
parent679deb758191cbee1c86391fbb5cbbfd83d298a8
buffer: allow configurable memory alignment. Fixes #596832

The alignment guaranteed by malloc is not always sufficient. E.g. vector
instructions or hardware subsystems want specifically aligned buffers. The
attached patch will use posix_memalign if available to allocate buffers.
The desired alignment can be set when running configure using the new
--with-buffer-alignment option.
configure.ac
gst/gstbuffer.c