From 61ce17d6f324325e6aaa8db36b0216798646edd8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 10 Mar 2006 23:44:00 +0000 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ gst/gstclock.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b69880a..9f8b492 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-03-10 Tim-Philipp Müller + + * 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 * configure.ac: diff --git a/gst/gstclock.h b/gst/gstclock.h index 65799f8..f9abd76 100644 --- a/gst/gstclock.h +++ b/gst/gstclock.h @@ -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: -- 2.7.4