mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
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:
parent
268c5e7e17
commit
28e5f81021
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue