mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
padtemplate: explicitly cast to the enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC.
This commit is contained in:
parent
746813344d
commit
480d415419
1 changed files with 4 additions and 2 deletions
|
@ -431,10 +431,12 @@ gst_pad_template_set_property (GObject * object, guint prop_id,
|
|||
GST_PAD_TEMPLATE_NAME_TEMPLATE (object) = g_value_dup_string (value);
|
||||
break;
|
||||
case PROP_DIRECTION:
|
||||
GST_PAD_TEMPLATE_DIRECTION (object) = g_value_get_enum (value);
|
||||
GST_PAD_TEMPLATE_DIRECTION (object) =
|
||||
(GstPadDirection) g_value_get_enum (value);
|
||||
break;
|
||||
case PROP_PRESENCE:
|
||||
GST_PAD_TEMPLATE_PRESENCE (object) = g_value_get_enum (value);
|
||||
GST_PAD_TEMPLATE_PRESENCE (object) =
|
||||
(GstPadPresence) g_value_get_enum (value);
|
||||
break;
|
||||
case PROP_CAPS:
|
||||
/* allow caps == NULL for backwards compatibility (ie. g_object_new()
|
||||
|
|
Loading…
Reference in a new issue