From 12b3a37b5e7d352b6f082d11f34ce01846289d34 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 10 Dec 2013 18:30:03 -0500 Subject: gst-launch: Handle taglist copy failure If we couldn't copy the tags, just return instead of trying to use bogus values. --- tools/gst-launch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') 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); -- cgit v1.2.1