index: explicitly cast to the enum type
authorJosep Torra <n770galaxy@gmail.com>
Tue, 16 Aug 2011 20:37:08 +0000 (22:37 +0200)
committerJosep Torra <n770galaxy@gmail.com>
Fri, 26 Aug 2011 12:11:13 +0000 (14:11 +0200)
Fixes warning #188: enumerated type mixed with another type reported by ICC.

gst/gstindex.c

index 27d4b8b..d168eee 100644 (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;