From 795e836ce3e63b2382be0cb5981f014bb061263e Mon Sep 17 00:00:00 2001 From: Peteris Krisjanis Date: Sat, 15 Oct 2011 22:52:25 +0300 Subject: [PATCH] introspection: add Value annotations for GST_SECOND, GST_MSECOND, GST_USECOND, GST_NSECOND constants gobject-introspection won't parse them properly otherwise. Still need to force the right type though (either GstClockTime or guint64), but Type: xyz has no effect for me here, so someone with a newer g-i needs to test this. Some other defines are also missing, e.g. GST_CLOCK_TIME_NONE. --- gst/gstclock.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gst/gstclock.h b/gst/gstclock.h index 230e190..0af622b 100644 --- a/gst/gstclock.h +++ b/gst/gstclock.h @@ -81,28 +81,41 @@ typedef gpointer GstClockID; */ #define GST_CLOCK_TIME_IS_VALID(time) (((GstClockTime)(time)) != GST_CLOCK_TIME_NONE) +/* FIXME: still need to explicitly force types on the defines below */ /** * GST_SECOND: * * Constant that defines one GStreamer second. + * + * Value: 1000000000 + * */ #define GST_SECOND (G_USEC_PER_SEC * G_GINT64_CONSTANT (1000)) /** * GST_MSECOND: * * Constant that defines one GStreamer millisecond. + * + * Value: 1000000 + * */ #define GST_MSECOND (GST_SECOND / G_GINT64_CONSTANT (1000)) /** * GST_USECOND: * * Constant that defines one GStreamer microsecond. + * + * Value: 1000 + * */ #define GST_USECOND (GST_SECOND / G_GINT64_CONSTANT (1000000)) /** * GST_NSECOND: * * Constant that defines one GStreamer nanosecond + * + * Value: 1 + * */ #define GST_NSECOND (GST_SECOND / G_GINT64_CONSTANT (1000000000)) -- 2.7.4