projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28d142e
)
taglist: Avoid assertions when getting tag nick from unregister tag
author
Thibault Saunier
<tsaunier@gnome.org>
Wed, 8 Nov 2017 15:46:44 +0000
(12:46 -0300)
committer
Thibault Saunier
<tsaunier@gnome.org>
Sun, 26 Nov 2017 15:53:54 +0000
(12:53 -0300)
With serialized GstDiscovererInfos we might end up trying to use
tags that have not been registered.
gst/gsttaglist.c
patch
|
blob
|
history
diff --git
a/gst/gsttaglist.c
b/gst/gsttaglist.c
index
dd036de
..
f1940d9
100644
(file)
--- 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;
}