summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEdward Hervey <edward@collabora.com>2013-12-10 18:30:03 -0500
committerEdward Hervey <edward@collabora.com>2013-12-10 18:30:03 -0500
commit12b3a37b5e7d352b6f082d11f34ce01846289d34 (patch)
tree4844b5d1f4742cd06bd15dd07747ed3a7b7621fc /tools
parent60b94c649830adfbdb3ca983ae034a7c1a93a55a (diff)
downloadgstreamer-12b3a37b5e7d352b6f082d11f34ce01846289d34.tar.gz
gst-launch: Handle taglist copy failure
If we couldn't copy the tags, just return instead of trying to use bogus values.
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-launch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c
index d24ffd1d81..a8ab1cdfa4 100644
--- 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);