mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +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 };
|
GValue value = { 0 };
|
||||||
|
|
||||||
gst_tag_list_copy_value (&value, tags, tag);
|
if (gst_tag_list_copy_value (&value, tags, tag)) {
|
||||||
ges_meta_container_set_meta (container, tag, &value);
|
ges_meta_container_set_meta (container, tag, &value);
|
||||||
g_value_unset (&value);
|
g_value_unset (&value);
|
||||||
|
} else {
|
||||||
|
GST_INFO ("Could not set metadata: %s", tag);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue