mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
uri-asset: Check return value of gst_tag_list_copy_value
CID 1139597
This commit is contained in:
parent
d582da74d3
commit
56abc17a70
1 changed files with 6 additions and 3 deletions
|
@ -318,9 +318,12 @@ _set_meta_foreach (const GstTagList * tags, const gchar * tag,
|
|||
{
|
||||
GValue value = { 0 };
|
||||
|
||||
gst_tag_list_copy_value (&value, tags, tag);
|
||||
ges_meta_container_set_meta (container, tag, &value);
|
||||
g_value_unset (&value);
|
||||
if (gst_tag_list_copy_value (&value, tags, tag)) {
|
||||
ges_meta_container_set_meta (container, tag, &value);
|
||||
g_value_unset (&value);
|
||||
} else {
|
||||
GST_INFO ("Could not set metadata: %s", tag);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue