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
This commit is contained in:
Josep Torra 2011-08-10 11:07:49 +02:00 committed by Tim-Philipp Müller
parent 89239d85cc
commit 2271b6dc9a

View file

@ -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