[Mesa-dev] [PATCH kmscube 2/2] gst-video-appsink: Cleanup & add max-lateness & enable QoS
Carlos Rafael Giani
dv at pseudoterminal.org
Mon Apr 10 14:03:36 UTC 2017
The QoS and max-lateness settings are copied from GstVideoSink, since here,
the appsink subclass specifically handles video
Signed-off-by: Carlos Rafael Giani <dv at pseudoterminal.org>
---
gst-video-appsink.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gst-video-appsink.c b/gst-video-appsink.c
index 34e5931..2c5c15b 100644
--- a/gst-video-appsink.c
+++ b/gst-video-appsink.c
@@ -81,7 +81,9 @@ gst_video_appsink_class_init(GstVideoAppsinkClass *klass)
static void
gst_video_appsink_init(GstVideoAppsink *video_appsink)
{
- (void)video_appsink;
+ /* QoS and max-lateness lines taken from gstvideosink.c */
+ gst_base_sink_set_max_lateness(GST_BASE_SINK(video_appsink), 20 * GST_MSECOND);
+ gst_base_sink_set_qos_enabled(GST_BASE_SINK(video_appsink), TRUE);
}
@@ -90,8 +92,6 @@ gst_video_appsink_sink_propose_allocation (GstBaseSink *bsink, GstQuery *query)
{
(void)bsink;
- gst_query_parse_allocation(query, NULL, NULL);
-
gst_query_add_allocation_meta(query, GST_VIDEO_META_API_TYPE, NULL);
return TRUE;
--
2.7.4
More information about the mesa-dev
mailing list