mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
gst-discoverer: error out on failure to copy
This should not really fail, but let's check return value anyway as it guards against future changes. Coverity 1135731
This commit is contained in:
parent
20344f6dc9
commit
e107ba97e2
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue