diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-12-22 18:17:04 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-12-22 18:17:04 +0100 |
commit | 53b2cdf335f1f8cbe217e47b0eecae370d85c9cc (patch) | |
tree | edfd93de758bc817c1e35bcaf2ed932491e5ade3 /sys/d3dvideosink | |
parent | 0642f3a1430476b2f5d6009288aed3309ea22865 (diff) | |
download | gstreamer-plugins-bad-53b2cdf335f1f8cbe217e47b0eecae370d85c9cc.tar.gz |
d3dvideosink: Add support for the video meta
Diffstat (limited to 'sys/d3dvideosink')
-rw-r--r-- | sys/d3dvideosink/d3dvideosink.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/d3dvideosink/d3dvideosink.c b/sys/d3dvideosink/d3dvideosink.c index 12e40bd22..7063819a0 100644 --- a/sys/d3dvideosink/d3dvideosink.c +++ b/sys/d3dvideosink/d3dvideosink.c @@ -81,6 +81,8 @@ static GstCaps *gst_d3dvideosink_get_caps (GstBaseSink * basesink, static gboolean gst_d3dvideosink_set_caps (GstBaseSink * bsink, GstCaps * caps); static gboolean gst_d3dvideosink_start (GstBaseSink * sink); static gboolean gst_d3dvideosink_stop (GstBaseSink * sink); +static gboolean gst_d3dvideosink_propose_allocation (GstBaseSink * bsink, + GstQuery * query); /* GstVideoSink */ static GstFlowReturn gst_d3dvideosink_show_frame (GstVideoSink * vsink, GstBuffer * buffer); @@ -116,6 +118,8 @@ gst_d3dvideosink_class_init (GstD3DVideoSinkClass * klass) gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_d3dvideosink_set_caps); gstbasesink_class->start = GST_DEBUG_FUNCPTR (gst_d3dvideosink_start); gstbasesink_class->stop = GST_DEBUG_FUNCPTR (gst_d3dvideosink_stop); + gstbasesink_class->propose_allocation = + GST_DEBUG_FUNCPTR (gst_d3dvideosink_propose_allocation); gstvideosink_class->show_frame = GST_DEBUG_FUNCPTR (gst_d3dvideosink_show_frame); @@ -404,6 +408,12 @@ gst_d3dvideosink_stop (GstBaseSink * bsink) return TRUE; } +static gboolean +gst_d3dvideosink_propose_allocation (GstBaseSink * bsink, GstQuery * query) +{ + gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL); +} + /** PUBLIC FUNCTIONS **/ /* Iterface Registrations */ |