projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d582da7
)
uri-asset: Check return value of gst_tag_list_copy_value
author
Thibault Saunier
<tsaunier@gnome.org>
Thu, 17 Apr 2014 11:04:26 +0000
(13:04 +0200)
committer
Thibault Saunier
<tsaunier@gnome.org>
Thu, 17 Apr 2014 11:18:19 +0000
(13:18 +0200)
CID 1139597
ges/ges-uri-asset.c
patch
|
blob
|
history
diff --git
a/ges/ges-uri-asset.c
b/ges/ges-uri-asset.c
index
1e60d1b
..
72d5d63
100644
(file)
--- 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