mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
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:
parent
89239d85cc
commit
2271b6dc9a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue