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:
2f94ad3
)
elementfactory: meta-data can be NULL
author
Stefan Kost
<ensonic@users.sf.net>
Thu, 2 Dec 2010 22:00:09 +0000
(
00:00
+0200)
committer
Stefan Kost
<ensonic@users.sf.net>
Thu, 2 Dec 2010 22:00:09 +0000
(
00:00
+0200)
gst/gstelementfactory.c
patch
|
blob
|
history
diff --git
a/gst/gstelementfactory.c
b/gst/gstelementfactory.c
index
de9fb6b
..
8294691
100644
(file)
--- a/
gst/gstelementfactory.c
+++ b/
gst/gstelementfactory.c
@@
-566,6
+566,9
@@
static G_CONST_RETURN gchar *
gst_element_factory_get_meta_data (GstElementFactory * factory,
const gchar * key)
{
+ if (!factory->meta_data)
+ return NULL;
+
/* FIXME: do we want to support other types? */
return gst_structure_get_string ((GstStructure *) factory->meta_data, key);
}