diff options
author | Josep Torra <n770galaxy@gmail.com> | 2011-08-25 21:03:53 +0200 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2011-08-26 14:11:13 +0200 |
commit | 480d415419367d92957af552e5fbc01a24f052c0 (patch) | |
tree | 18ea0239b3de94e60fdb2c7498692639f242bd77 | |
parent | 746813344dbb6808f6c6a7b98d9e777dc930e767 (diff) |
padtemplate: explicitly cast to the enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC.
-rw-r--r-- | gst/gstpadtemplate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/gstpadtemplate.c b/gst/gstpadtemplate.c index 44dd9039e..116cd77a4 100644 --- a/gst/gstpadtemplate.c +++ b/gst/gstpadtemplate.c @@ -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() |