diff --git a/tools/gst-discoverer.c b/tools/gst-discoverer.c index 0d8e983b65..636cf80576 100644 --- a/tools/gst-discoverer.c +++ b/tools/gst-discoverer.c @@ -95,7 +95,8 @@ print_tag_foreach (const GstTagList * tags, const gchar * tag, gchar *str; guint depth = GPOINTER_TO_UINT (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);