summaryrefslogtreecommitdiff
path: root/plugins/elements/gstclocksync.c
diff options
context:
space:
mode:
authorDoug Nazar <nazard@nazar.ca>2021-04-07 04:46:23 -0400
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-04-08 07:27:07 +0000
commitf52937d1fff96e215359c5b7910c424a2b2c495e (patch)
tree4965e2142a52485301c04a999515f91538a8739e /plugins/elements/gstclocksync.c
parent9f958058697e6fbf5bde325228034572331d1a3a (diff)
downloadgstreamer-f52937d1fff96e215359c5b7910c424a2b2c495e.tar.gz
clocksync: Fix providing system clock by default
clocksync defaults to sync=true so should advertise it by default. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/786>
Diffstat (limited to 'plugins/elements/gstclocksync.c')
-rw-r--r--plugins/elements/gstclocksync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/elements/gstclocksync.c b/plugins/elements/gstclocksync.c
index 5b841db5f8..96c70d0117 100644
--- a/plugins/elements/gstclocksync.c
+++ b/plugins/elements/gstclocksync.c
@@ -207,6 +207,7 @@ gst_clock_sync_init (GstClockSync * clocksync)
clocksync->sync_to_first = DEFAULT_SYNC_TO_FIRST;
g_cond_init (&clocksync->blocked_cond);
+ GST_OBJECT_FLAG_SET (clocksync, GST_ELEMENT_FLAG_PROVIDE_CLOCK);
GST_OBJECT_FLAG_SET (clocksync, GST_ELEMENT_FLAG_REQUIRE_CLOCK);
}