summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2017-11-08 12:46:44 -0300
committerThibault Saunier <tsaunier@gnome.org>2017-11-26 12:53:54 -0300
commite45873c6ec1877656d801c49540c8a27e3dc9780 (patch)
tree8699b0f59154bbca6a9c4143bb93ebed14e604cc /gst
parent28d142e6da7d9c7daaf891ed9e0420e55bb7d396 (diff)
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.
Diffstat (limited to 'gst')
-rw-r--r--gst/gsttaglist.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c
index dd036de0e..f1940d985 100644
--- a/gst/gsttaglist.c
+++ b/gst/gsttaglist.c
@@ -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;
}