uri-asset: Check return value of gst_tag_list_copy_value
authorThibault Saunier <tsaunier@gnome.org>
Thu, 17 Apr 2014 11:04:26 +0000 (13:04 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Thu, 17 Apr 2014 11:18:19 +0000 (13:18 +0200)
CID 1139597

ges/ges-uri-asset.c

index 1e60d1b..72d5d63 100644 (file)
@@ -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