clock: Add new functions to the documentation
authorSebastian Dröge <sebastian@centricular.com>
Sat, 3 Nov 2018 16:29:17 +0000 (18:29 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 3 Nov 2018 17:00:35 +0000 (19:00 +0200)
docs/gst/gstreamer-sections.txt
gst/gstclock.c

index cfcd783..03f3272 100644 (file)
@@ -667,6 +667,8 @@ gst_clock_wait_for_sync
 gst_clock_is_synced
 gst_clock_set_synced
 gst_clock_id_get_time
+gst_clock_id_get_clock
+gst_clock_id_uses_clock
 gst_clock_id_wait
 gst_clock_id_wait_async
 gst_clock_id_unschedule
index baa6286..d82748c 100644 (file)
@@ -1389,6 +1389,8 @@ gst_clock_get_master (GstClock * clock)
  *     underlying clock has been freed.  Unref after usage.
  *
  * MT safe.
+ *
+ * Since: 1.16
  */
 GstClock *
 gst_clock_id_get_clock (GstClockID id)
@@ -1405,7 +1407,7 @@ gst_clock_id_get_clock (GstClockID id)
  * gst_clock_id_uses_clock:
  * @id: a #GstClockID to check
  * @clock: a #GstClock to compare against
- * 
+ *
  * This function returns whether @id uses @clock as the underlying clock.
  * @clock can be NULL, in which case the return value indicates whether
  * the underlying clock has been freed.  If this is the case, the @id is
@@ -1414,6 +1416,8 @@ gst_clock_id_get_clock (GstClockID id)
  * Returns: whether the clock @id uses the same underlying #GstClock @clock.
  *
  * MT safe.
+ *
+ * Since: 1.16
  */
 gboolean
 gst_clock_id_uses_clock (GstClockID id, GstClock * clock)
@@ -1423,6 +1427,7 @@ gst_clock_id_uses_clock (GstClockID id, GstClock * clock)
   gboolean ret = FALSE;
 
   g_return_val_if_fail (id != NULL, FALSE);
+  g_return_val_if_fail (clock != NULL, FALSE);
 
   entry = (GstClockEntry *) id;
   entry_clock = g_weak_ref_get (&entry->ABI.clock);