mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
pad: explicitly cast to the enum type
Fixes warning #188: enumerated type mixed with another type reported by ICC.
This commit is contained in:
parent
c27ce79ba1
commit
746813344d
2 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue