mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst-launch: Handle taglist copy failure
If we couldn't copy the tags, just return instead of trying to use bogus values.
This commit is contained in:
parent
60b94c6498
commit
12b3a37b5e
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue