Commit 56abc17a authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

uri-asset: Check return value of gst_tag_list_copy_value

CID 1139597
parent d582da74
......@@ -318,9 +318,12 @@ _set_meta_foreach (const GstTagList * tags, const gchar * tag,
{
GValue value = { 0 };
gst_tag_list_copy_value (&value, tags, tag);
ges_meta_container_set_meta (container, tag, &value);
g_value_unset (&value);
if (gst_tag_list_copy_value (&value, tags, tag)) {
ges_meta_container_set_meta (container, tag, &value);
g_value_unset (&value);
} else {
GST_INFO ("Could not set metadata: %s", tag);
}
}
static void
......
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