mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
value: explicitly cast to the enum type
Fixes warning #188: enumerated type mixed with another type reported by ICC.
This commit is contained in:
parent
b57683d258
commit
b26c5b99f2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue