Original commit message from CVS:
Patch by: Peter Kjellerstedt <pkj axis com>
* gst/gstclock.h:
Cast the results from the timeval/spec_to_time macros to what the
docs say it casts to, a GstClockTime. fixes #508175.
2008-01-09 Wim Taymans <wim.taymans@collabora.co.uk>
+ Patch by: Peter Kjellerstedt <pkj axis com>
+
+ * gst/gstclock.h:
+ Cast the results from the timeval/spec_to_time macros to what the
+ docs say it casts to, a GstClockTime. fixes #508175.
+
+2008-01-09 Wim Taymans <wim.taymans@collabora.co.uk>
+
* gst/gstbuffer.c:
Update some comments.
*
* Convert a GTimeVal to a #GstClockTime.
*/
-#define GST_TIMEVAL_TO_TIME(tv) ((tv).tv_sec * GST_SECOND + (tv).tv_usec * GST_USECOND)
+#define GST_TIMEVAL_TO_TIME(tv) (GstClockTime)((tv).tv_sec * GST_SECOND + (tv).tv_usec * GST_USECOND)
/**
* GST_TIME_TO_TIMEVAL:
*
* Convert a struct timespec (see man pselect) to a #GstClockTime.
*/
-#define GST_TIMESPEC_TO_TIME(ts) ((ts).tv_sec * GST_SECOND + (ts).tv_nsec * GST_NSECOND)
+#define GST_TIMESPEC_TO_TIME(ts) (GstClockTime)((ts).tv_sec * GST_SECOND + (ts).tv_nsec * GST_NSECOND)
/**
* GST_TIME_TO_TIMESPEC:
* @t: The GstClockTime to convert