elementfactory: meta-data can be NULL

This commit is contained in:
Stefan Kost 2010-12-03 00:00:09 +02:00
parent 2f94ad3d6c
commit 2d17d86ba8

View file

@ -566,6 +566,9 @@ static G_CONST_RETURN gchar *
gst_element_factory_get_meta_data (GstElementFactory * factory, gst_element_factory_get_meta_data (GstElementFactory * factory,
const gchar * key) const gchar * key)
{ {
if (!factory->meta_data)
return NULL;
/* FIXME: do we want to support other types? */ /* FIXME: do we want to support other types? */
return gst_structure_get_string ((GstStructure *) factory->meta_data, key); return gst_structure_get_string ((GstStructure *) factory->meta_data, key);
} }