uri-asset: Check return value of gst_tag_list_copy_value

CID 1139597
This commit is contained in:
Thibault Saunier 2014-04-17 13:04:26 +02:00
parent d582da74d3
commit 56abc17a70

View file

@ -318,9 +318,12 @@ _set_meta_foreach (const GstTagList * tags, const gchar * tag,
{ {
GValue value = { 0 }; GValue value = { 0 };
gst_tag_list_copy_value (&value, tags, tag); if (gst_tag_list_copy_value (&value, tags, tag)) {
ges_meta_container_set_meta (container, tag, &value); ges_meta_container_set_meta (container, tag, &value);
g_value_unset (&value); g_value_unset (&value);
} else {
GST_INFO ("Could not set metadata: %s", tag);
}
} }
static void static void