clocksync: Fix providing system clock by default
authorDoug Nazar <nazard@nazar.ca>
Wed, 7 Apr 2021 08:46:23 +0000 (04:46 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 8 Apr 2021 07:27:07 +0000 (07:27 +0000)
clocksync defaults to sync=true so should advertise it by default.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/786>

plugins/elements/gstclocksync.c

index 5b841db..96c70d0 100644 (file)
@@ -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);
 }