From 28e5f81021e57def7d09b1c7c71a33c35d17e26f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Fri, 20 Oct 2017 18:36:55 +0200 Subject: [PATCH] videosink: Set processing deadline to 15ms This roughly corresponds to one frame at 60fps, and leave 5ms of max_lateness to not change the existing behaviour. https://bugzilla.gnome.org/show_bug.cgi?id=640610 --- gst-libs/gst/video/gstvideosink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/video/gstvideosink.c b/gst-libs/gst/video/gstvideosink.c index 819eea6..6130cf3 100644 --- a/gst-libs/gst/video/gstvideosink.c +++ b/gst-libs/gst/video/gstvideosink.c @@ -142,7 +142,9 @@ gst_video_sink_init (GstVideoSink * videosink) videosink->height = 0; /* 20ms is more than enough, 80-130ms is noticable */ - gst_base_sink_set_max_lateness (GST_BASE_SINK (videosink), 20 * GST_MSECOND); + gst_base_sink_set_processing_deadline (GST_BASE_SINK (videosink), + 15 * GST_MSECOND); + gst_base_sink_set_max_lateness (GST_BASE_SINK (videosink), 5 * GST_MSECOND); gst_base_sink_set_qos_enabled (GST_BASE_SINK (videosink), TRUE); videosink->priv = gst_video_sink_get_instance_private (videosink); -- 2.7.4