mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
taglist: check value type matches tag type when adding values to a taglist
This commit is contained in:
parent
379c3cd184
commit
48d0d28755
1 changed files with 8 additions and 0 deletions
|
@ -964,6 +964,14 @@ gst_tag_list_add_value_internal (GstTagList * tag_list, GstTagMergeMode mode,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (G_UNLIKELY (!G_VALUE_HOLDS (value, info->type) &&
|
||||||
|
!GST_VALUE_HOLDS_LIST (value))) {
|
||||||
|
g_warning ("tag '%s' should hold value of type '%s', but value of "
|
||||||
|
"type '%s' passed", info->nick, g_type_name (info->type),
|
||||||
|
g_type_name (G_VALUE_TYPE (value)));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
tag_quark = info->name_quark;
|
tag_quark = info->name_quark;
|
||||||
|
|
||||||
if (info->merge_func
|
if (info->merge_func
|
||||||
|
|
Loading…
Reference in a new issue