projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94ae04f
)
bufferpool: use same alignment values as GstMemory
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 10 Jun 2011 15:50:27 +0000
(17:50 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 10 Jun 2011 15:50:27 +0000
(17:50 +0200)
Use the same alignment values for the bufferpool as we use for the GstMemory
API.
gst/gstbufferpool.c
patch
|
blob
|
history
diff --git
a/gst/gstbufferpool.c
b/gst/gstbufferpool.c
index
a43b426
..
a3dab8b
100644
(file)
--- a/
gst/gstbufferpool.c
+++ b/
gst/gstbufferpool.c
@@
-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;
}