mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
d3dvideosink: Add support for the video meta
This commit is contained in:
parent
0642f3a143
commit
53b2cdf335
1 changed files with 10 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue