systemclock: add OTHER clock type
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 20 Dec 2012 15:40:04 +0000 (16:40 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 20 Dec 2012 15:40:04 +0000 (16:40 +0100)
Add an OTHER clock type so that subclasses are able to mark themselves as
using some other clock source than the realtime or monotonic clock.

gst/gstsystemclock.h

index 8df54a1..f474a4e 100644 (file)
@@ -47,12 +47,14 @@ typedef struct _GstSystemClockPrivate GstSystemClockPrivate;
  * @GST_CLOCK_TYPE_REALTIME: time since Epoch
  * @GST_CLOCK_TYPE_MONOTONIC: monotonic time since some unspecified starting
  *                            point
+ * @@GST_CLOCK_TYPE_OTHER: some other time source is used
  *
  * The different kind of clocks.
  */
 typedef enum {
   GST_CLOCK_TYPE_REALTIME       = 0,
-  GST_CLOCK_TYPE_MONOTONIC      = 1
+  GST_CLOCK_TYPE_MONOTONIC      = 1,
+  GST_CLOCK_TYPE_OTHER          = 2
 } GstClockType;
 
 /**