mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 19:31:12 +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);
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue