The QoS and max-lateness settings are copied from GstVideoSink, since here, the appsink subclass specifically handles video
Signed-off-by: Carlos Rafael Giani <d...@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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev