index: 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 22:37:08 +02:00
parent 11e287529d
commit e5d00246cf

View file

@ -253,7 +253,7 @@ gst_index_set_property (GObject * object, guint prop_id,
switch (prop_id) {
case ARG_RESOLVER:
index->method = g_value_get_enum (value);
index->method = (GstIndexResolverMethod) g_value_get_enum (value);
index->resolver = resolvers[index->method].resolver;
index->resolver_user_data = resolvers[index->method].user_data;
break;