Commit 2271b6dc authored by Josep Torra's avatar Josep Torra Committed by Tim-Philipp Müller

gststate: explicitly cast to the enum type

Fixes warning #188: enumerated type mixed with another type reported by ICC.
parent 89239d85
......@@ -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))))
* @cur: A current state
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment