diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2020-02-27 18:16:27 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2020-02-27 23:25:44 +0000 |
commit | 26ac42f7c07c5ed15d9309b49417a3e968ba774f (patch) | |
tree | 2c540b3eb337d8d89ffe8109c628a814314b8c32 /gst/debugutils/gstfakevideosink.c | |
parent | 8e3472faee430248cce0f9e021fec434b474e474 (diff) | |
download | gstreamer-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/gstfakevideosink.c')
-rw-r--r-- | gst/debugutils/gstfakevideosink.c | 5 |
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); |