Commit b26c5b99 authored by Josep Torra's avatar Josep Torra

value: explicitly cast to the enum type

Fixes warning #188: enumerated type mixed with another type reported by ICC.
parent b57683d2
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment