pad: explicitly cast to the enum type

Fixes warning #188: enumerated type mixed with another type reported by ICC.
This commit is contained in:
Josep Torra 2011-08-16 23:00:47 +02:00
parent c27ce79ba1
commit 746813344d
2 changed files with 2 additions and 2 deletions

View file

@ -483,7 +483,7 @@ gst_pad_set_property (GObject * object, guint prop_id,
switch (prop_id) { switch (prop_id) {
case PAD_PROP_DIRECTION: case PAD_PROP_DIRECTION:
GST_PAD_DIRECTION (object) = g_value_get_enum (value); GST_PAD_DIRECTION (object) = (GstPadDirection) g_value_get_enum (value);
break; break;
case PAD_PROP_TEMPLATE: case PAD_PROP_TEMPLATE:
gst_pad_set_pad_template (GST_PAD_CAST (object), gst_pad_set_pad_template (GST_PAD_CAST (object),

View file

@ -228,7 +228,7 @@ typedef enum {
* *
* Since: 0.10.30 * Since: 0.10.30
*/ */
#define GST_PAD_LINK_CHECK_DEFAULT (GST_PAD_LINK_CHECK_HIERARCHY | GST_PAD_LINK_CHECK_CAPS) #define GST_PAD_LINK_CHECK_DEFAULT ((GstPadLinkCheck) (GST_PAD_LINK_CHECK_HIERARCHY | GST_PAD_LINK_CHECK_CAPS))
/** /**
* GstActivateMode: * GstActivateMode: