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:
919a530
)
gst_element_factory_get_metadata: protect from null factory
author
Stephane Cerveau
<scerveau@fluendo.com>
Wed, 13 Mar 2019 17:46:14 +0000
(18:46 +0100)
committer
Stephane Cerveau
<scerveau@fluendo.com>
Wed, 13 Mar 2019 17:46:14 +0000
(18:46 +0100)
gst/gstelementfactory.c
patch
|
blob
|
history
diff --git
a/gst/gstelementfactory.c
b/gst/gstelementfactory.c
index
da64380
..
cf3b100
100644
(file)
--- a/
gst/gstelementfactory.c
+++ b/
gst/gstelementfactory.c
@@
-509,6
+509,8
@@
const gchar *
gst_element_factory_get_metadata (GstElementFactory * factory,
const gchar * key)
{
+ g_return_val_if_fail (GST_IS_ELEMENT_FACTORY (factory), NULL);
+
return gst_structure_get_string ((GstStructure *) factory->metadata, key);
}