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:
60b94c6
)
gst-launch: Handle taglist copy failure
author
Edward Hervey
<edward@collabora.com>
Tue, 10 Dec 2013 23:30:03 +0000
(18:30 -0500)
committer
Edward Hervey
<edward@collabora.com>
Tue, 10 Dec 2013 23:30:03 +0000
(18:30 -0500)
If we couldn't copy the tags, just return instead of trying to use bogus
values.
tools/gst-launch.c
patch
|
blob
|
history
diff --git
a/tools/gst-launch.c
b/tools/gst-launch.c
index
d24ffd1
..
a8ab1cd
100644
(file)
--- a/
tools/gst-launch.c
+++ b/
tools/gst-launch.c
@@
-412,7
+412,8
@@
print_tag_foreach (const GstTagList * tags, const gchar * tag,
gchar *str;
gint depth = GPOINTER_TO_INT (user_data);
- gst_tag_list_copy_value (&val, tags, tag);
+ if (!gst_tag_list_copy_value (&val, tags, tag))
+ return;
if (G_VALUE_HOLDS_STRING (&val))
str = g_value_dup_string (&val);