clock: annotate GST_CLOCK_TIME_NONE with its value for g-i

The value now gets picked up, but it still thinks the type
is a 'gint'.

https://bugzilla.gnome.org/show_bug.cgi?id=678928
This commit is contained in:
Tim-Philipp Müller 2012-06-27 14:48:55 +01:00
parent f95996d97f
commit e552cc74d9

View file

@ -66,6 +66,9 @@ typedef gpointer GstClockID;
* GST_CLOCK_TIME_NONE: * GST_CLOCK_TIME_NONE:
* *
* Constant to define an undefined clock time. * Constant to define an undefined clock time.
*
* Value: 18446744073709551615
* Type: GstClockTime
*/ */
#define GST_CLOCK_TIME_NONE ((GstClockTime) -1) #define GST_CLOCK_TIME_NONE ((GstClockTime) -1)
/** /**
@ -83,7 +86,7 @@ typedef gpointer GstClockID;
* Constant that defines one GStreamer second. * Constant that defines one GStreamer second.
* *
* Value: 1000000000 * Value: 1000000000
* * Type: GstClockTime
*/ */
#define GST_SECOND (G_USEC_PER_SEC * G_GINT64_CONSTANT (1000)) #define GST_SECOND (G_USEC_PER_SEC * G_GINT64_CONSTANT (1000))
/** /**
@ -92,7 +95,7 @@ typedef gpointer GstClockID;
* Constant that defines one GStreamer millisecond. * Constant that defines one GStreamer millisecond.
* *
* Value: 1000000 * Value: 1000000
* * Type: GstClockTime
*/ */
#define GST_MSECOND (GST_SECOND / G_GINT64_CONSTANT (1000)) #define GST_MSECOND (GST_SECOND / G_GINT64_CONSTANT (1000))
/** /**
@ -101,7 +104,7 @@ typedef gpointer GstClockID;
* Constant that defines one GStreamer microsecond. * Constant that defines one GStreamer microsecond.
* *
* Value: 1000 * Value: 1000
* * Type: GstClockTime
*/ */
#define GST_USECOND (GST_SECOND / G_GINT64_CONSTANT (1000000)) #define GST_USECOND (GST_SECOND / G_GINT64_CONSTANT (1000000))
/** /**
@ -110,7 +113,7 @@ typedef gpointer GstClockID;
* Constant that defines one GStreamer nanosecond * Constant that defines one GStreamer nanosecond
* *
* Value: 1 * Value: 1
* * Type: GstClockTime
*/ */
#define GST_NSECOND (GST_SECOND / G_GINT64_CONSTANT (1000000000)) #define GST_NSECOND (GST_SECOND / G_GINT64_CONSTANT (1000000000))