diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2014-04-17 13:04:26 +0200 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2014-04-17 13:18:19 +0200 |
commit | 56abc17a70178e072632842a1ae4ba77eb8df110 (patch) | |
tree | 5558aaf11f72d1b89197dfa660dc85d35867cafa | |
parent | d582da74d3c7cef0a7f166fb6e107a5d7e1b5b4d (diff) |
uri-asset: Check return value of gst_tag_list_copy_value
CID 1139597
-rw-r--r-- | ges/ges-uri-asset.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ges/ges-uri-asset.c b/ges/ges-uri-asset.c index 1e60d1ba..72d5d63d 100644 --- a/ges/ges-uri-asset.c +++ b/ges/ges-uri-asset.c @@ -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 |