diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c index de9fb6bc6a..829469180b 100644 --- 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); }