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
This commit is contained in:
Olivier Crête 2017-10-20 18:36:55 +02:00 committed by Nicolas Dufresne
parent 268c5e7e17
commit 28e5f81021

View file

@ -142,7 +142,9 @@ gst_video_sink_init (GstVideoSink * videosink)
videosink->height = 0; videosink->height = 0;
/* 20ms is more than enough, 80-130ms is noticable */ /* 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); gst_base_sink_set_qos_enabled (GST_BASE_SINK (videosink), TRUE);
videosink->priv = gst_video_sink_get_instance_private (videosink); videosink->priv = gst_video_sink_get_instance_private (videosink);