diff --git a/gst/gstpad.c b/gst/gstpad.c index 14c97863ef..cfb5681aae 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -483,7 +483,7 @@ gst_pad_set_property (GObject * object, guint prop_id, switch (prop_id) { case PAD_PROP_DIRECTION: - GST_PAD_DIRECTION (object) = g_value_get_enum (value); + GST_PAD_DIRECTION (object) = (GstPadDirection) g_value_get_enum (value); break; case PAD_PROP_TEMPLATE: gst_pad_set_pad_template (GST_PAD_CAST (object), diff --git a/gst/gstpad.h b/gst/gstpad.h index 5317dee41c..86152bf9f9 100644 --- a/gst/gstpad.h +++ b/gst/gstpad.h @@ -228,7 +228,7 @@ typedef enum { * * 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: