Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Nazar <nazard@nazar.ca>2021-04-07 11:46:23 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-04-08 10:27:07 +0300
commitf52937d1fff96e215359c5b7910c424a2b2c495e (patch)
tree4965e2142a52485301c04a999515f91538a8739e
parent9f958058697e6fbf5bde325228034572331d1a3a (diff)
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>
-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);
}