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:
Thibault Saunier 2017-11-08 12:46:44 -03:00
parent 28d142e6da
commit e45873c6ec

View file

@ -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;
}