mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
bufferpool: use same alignment values as GstMemory
Use the same alignment values for the bufferpool as we use for the GstMemory API.
This commit is contained in:
parent
94ae04f098
commit
2b071ea395
1 changed files with 1 additions and 4 deletions
|
@ -160,15 +160,12 @@ static GstFlowReturn
|
|||
default_alloc_buffer (GstBufferPool * pool, GstBuffer ** buffer,
|
||||
GstBufferPoolParams * params)
|
||||
{
|
||||
guint align;
|
||||
GstBufferPoolPrivate *priv = pool->priv;
|
||||
|
||||
*buffer = gst_buffer_new ();
|
||||
|
||||
align = priv->align - 1;
|
||||
|
||||
gst_buffer_take_memory (*buffer, gst_memory_allocator_alloc (NULL, priv->size,
|
||||
align));
|
||||
priv->align));
|
||||
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue