value: 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-25 22:42:08 +02:00
parent b57683d258
commit b26c5b99f2

View 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);
}