gst/gstclock.h: Fix GST_CLOCK_TIME_IS_VALID signedness issues - we need to cast the input to GstClockTime before comp...

Original commit message from CVS:
* gst/gstclock.h:
Fix GST_CLOCK_TIME_IS_VALID signedness issues - we need
to cast the input to GstClockTime before comparing with
another GstClockTime value.
This commit is contained in:
Tim-Philipp Müller 2006-03-10 23:44:00 +00:00
parent 485f6d33cd
commit 61ce17d6f3
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2006-03-10 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstclock.h:
Fix GST_CLOCK_TIME_IS_VALID signedness issues - we need
to cast the input to GstClockTime before comparing with
another GstClockTime value.
2006-03-10 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:

View file

@ -79,7 +79,7 @@ typedef gpointer GstClockID;
*
* Tests if a given #GstClockTime represents a valid defined time.
*/
#define GST_CLOCK_TIME_IS_VALID(time) ((time) != GST_CLOCK_TIME_NONE)
#define GST_CLOCK_TIME_IS_VALID(time) (((GstClockTime)(time)) != GST_CLOCK_TIME_NONE)
/**
* GST_SECOND: