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

gst/gstvalue.c

index 3817160..f2d6a56 100644 (file)
@@ -2388,7 +2388,7 @@ gst_value_serialize_enum (const GValue * value)
   if (G_UNLIKELY (en == NULL && G_VALUE_TYPE (value) == GST_TYPE_FORMAT)) {
     const GstFormatDefinition *format_def;
 
-    format_def = gst_format_get_details (g_value_get_enum (value));
+    format_def = gst_format_get_details ((GstFormat) g_value_get_enum (value));
     g_return_val_if_fail (format_def != NULL, NULL);
     return g_strdup (format_def->description);
   }