fakevideosink: Align max-lateness/processing-deadline to GstVideoSink

To emulate correctly the timing video of a real sink, let's set those
properties just like a real video sink.
This commit is contained in:
Olivier Crête 2020-02-27 18:16:27 -05:00 committed by Olivier Crête
parent 8e3472faee
commit 26ac42f7c0

View file

@ -180,8 +180,9 @@ gst_fake_video_sink_init (GstFakeVideoSink * self)
GstPad *ghost_pad;
/* mimic GstVideoSink base class */
g_object_set (child, "max-lateness", G_GINT64_CONSTANT (20000000), "qos",
TRUE, "sync", TRUE, NULL);
g_object_set (child, "max-lateness", 5 * GST_MSECOND,
"processing-deadline", 15 * GST_MSECOND, "qos", TRUE, "sync", TRUE,
NULL);
gst_bin_add (GST_BIN (self), child);