summaryrefslogtreecommitdiff
path: root/gst/gstbufferpool.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-14 19:37:22 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-14 19:47:10 +0100
commit3d76e6011c9c4c788d25d4bd629f4c9b1143e554 (patch)
tree87fa46ca25c7f514fe6d8b47e262848164739282 /gst/gstbufferpool.h
parent72ac5f516536d6a229ac5093fb152ab3440d417e (diff)
query: also include padding in ALLOCATION query
Negotiating padding is needed on second thought so include it in the ALLOCATION query. Make the bufferpool take padding into account when allocating. Make basesrc take padding into account. Use padding and prefix when allocating in basetransform.
Diffstat (limited to 'gst/gstbufferpool.h')
-rw-r--r--gst/gstbufferpool.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/gstbufferpool.h b/gst/gstbufferpool.h
index f9ee1333e..b0e5a9d5f 100644
--- a/gst/gstbufferpool.h
+++ b/gst/gstbufferpool.h
@@ -128,7 +128,7 @@ struct _GstBufferPool {
* be released when there are no buffers available.
* @alloc_buffer: allocate a buffer. the default implementation allocates
* buffers from the default memory allocator and with the configured
- * size, prefix and alignment. All metadata that is present on the
+ * size, prefix, padding and alignment. All metadata that is present on the
* allocated buffer will be marked as #GST_META_FLAG_POOLED and will not
* be removed from the buffer in @reset_buffer.
* @reset_buffer: reset the buffer to its state when it was freshly allocated.
@@ -182,10 +182,10 @@ gboolean gst_buffer_pool_has_option (GstBufferPool *pool, const gch
/* helpers for configuring the config structure */
void gst_buffer_pool_config_set (GstStructure *config, const GstCaps *caps,
guint size, guint min_buffers, guint max_buffers,
- guint prefix, guint align);
+ guint prefix, guint padding, guint align);
gboolean gst_buffer_pool_config_get (GstStructure *config, const GstCaps **caps,
guint *size, guint *min_buffers, guint *max_buffers,
- guint *prefix, guint *align);
+ guint *prefix, guint *padding, guint *align);
/* options */
guint gst_buffer_pool_config_n_options (GstStructure *config);