summaryrefslogtreecommitdiff
path: root/gst/debugutils
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2020-02-27 18:16:27 -0500
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>2020-02-27 23:25:44 +0000
commit26ac42f7c07c5ed15d9309b49417a3e968ba774f (patch)
tree2c540b3eb337d8d89ffe8109c628a814314b8c32 /gst/debugutils
parent8e3472faee430248cce0f9e021fec434b474e474 (diff)
downloadgstreamer-plugins-bad-26ac42f7c07c5ed15d9309b49417a3e968ba774f.tar.gz
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.
Diffstat (limited to 'gst/debugutils')
-rw-r--r--gst/debugutils/gstfakevideosink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/debugutils/gstfakevideosink.c b/gst/debugutils/gstfakevideosink.c
index 20b0f77a6..449630969 100644
--- a/gst/debugutils/gstfakevideosink.c
+++ b/gst/debugutils/gstfakevideosink.c
@@ -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);