From 2271b6dc9a339a70b94090663258545f28d7b7e6 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Wed, 10 Aug 2011 11:07:49 +0200 Subject: [PATCH] gststate: explicitly cast to the enum type Fixes warning #188: enumerated type mixed with another type reported by ICC. https://bugzilla.gnome.org/show_bug.cgi?id=656265 --- gst/gstelement.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstelement.h b/gst/gstelement.h index 74a0e2c..f0d2353 100644 --- a/gst/gstelement.h +++ b/gst/gstelement.h @@ -150,7 +150,7 @@ typedef enum { * Given a current state @cur and a target state @pending, calculate the next (intermediate) * #GstState. */ -#define GST_STATE_GET_NEXT(cur,pending) ((cur) + __GST_SIGN ((gint)(pending) - (gint)(cur))) +#define GST_STATE_GET_NEXT(cur,pending) ((GstState)((cur) + __GST_SIGN ((gint)(pending) - (gint)(cur)))) /** * GST_STATE_TRANSITION: * @cur: A current state -- 2.7.4