mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
crash: Don't crash on non existent tags.
This commit is contained in:
parent
9cda224a0d
commit
726a2fbff6
1 changed files with 3 additions and 0 deletions
|
@ -1008,6 +1008,9 @@ gst_tag_list_copy_value (GValue * dest, const GstTagList * list,
|
||||||
if (G_VALUE_TYPE (src) == GST_TYPE_LIST) {
|
if (G_VALUE_TYPE (src) == GST_TYPE_LIST) {
|
||||||
GstTagInfo *info = gst_tag_lookup (g_quark_from_string (tag));
|
GstTagInfo *info = gst_tag_lookup (g_quark_from_string (tag));
|
||||||
|
|
||||||
|
if (!info)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
/* must be there or lists aren't allowed */
|
/* must be there or lists aren't allowed */
|
||||||
g_assert (info->merge_func);
|
g_assert (info->merge_func);
|
||||||
info->merge_func (dest, src);
|
info->merge_func (dest, src);
|
||||||
|
|
Loading…
Reference in a new issue