summaryrefslogtreecommitdiff
path: root/gst-libs/gst/video/gstvideodecoder.h
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-08-09 14:35:22 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-08-09 14:47:46 +0200
commit7cb22ef24110ab894a09b6137b75a2ef0e3939ed (patch)
tree8264223deec6ae2f25d944d723c3c673266b0c9b /gst-libs/gst/video/gstvideodecoder.h
parent5adc87c6bd219f770467f5cef672f605506dc5ee (diff)
videodecoder: Add negotiate vfunc that is used to negotiate with downstream
The default implementation negotiates a buffer pool and allocator with downstream.
Diffstat (limited to 'gst-libs/gst/video/gstvideodecoder.h')
-rw-r--r--gst-libs/gst/video/gstvideodecoder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/video/gstvideodecoder.h b/gst-libs/gst/video/gstvideodecoder.h
index b451981a5..1d5be4eeb 100644
--- a/gst-libs/gst/video/gstvideodecoder.h
+++ b/gst-libs/gst/video/gstvideodecoder.h
@@ -223,6 +223,8 @@ struct _GstVideoDecoder
* Event handler on the source pad. This function should return
* TRUE if the event was handled and should be discarded
* (i.e. not unref'ed).
+ * @negotiate: Optional.
+ * Negotiate with downstream and configure buffer pools, etc.
* @decide_allocation: Optional.
* Setup the allocation parameters for allocating output
* buffers. The passed in query contains the result of the
@@ -271,6 +273,8 @@ struct _GstVideoDecoderClass
gboolean (*src_event) (GstVideoDecoder *decoder,
GstEvent *event);
+ gboolean (*negotiate) (GstVideoDecoder *decoder);
+
gboolean (*decide_allocation) (GstVideoDecoder *decoder, GstQuery *query);
gboolean (*propose_allocation) (GstVideoDecoder *decoder, GstQuery * query);