mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-09 07:52:36 +00:00
taglist: Avoid assertions when getting tag nick from unregister tag
With serialized GstDiscovererInfos we might end up trying to use tags that have not been registered.
This commit is contained in:
parent
28d142e6da
commit
e45873c6ec
1 changed files with 5 additions and 1 deletions
|
@ -613,7 +613,11 @@ gst_tag_get_nick (const gchar * tag)
|
||||||
|
|
||||||
g_return_val_if_fail (tag != NULL, NULL);
|
g_return_val_if_fail (tag != NULL, NULL);
|
||||||
info = gst_tag_lookup (tag);
|
info = gst_tag_lookup (tag);
|
||||||
g_return_val_if_fail (info != NULL, NULL);
|
if (!info) {
|
||||||
|
GST_WARNING ("Uknown tag: %s", tag);
|
||||||
|
|
||||||
|
return tag;
|
||||||
|
}
|
||||||
|
|
||||||
return info->nick;
|
return info->nick;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue