elementfactory: meta-data can be NULL
authorStefan Kost <ensonic@users.sf.net>
Thu, 2 Dec 2010 22:00:09 +0000 (00:00 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 2 Dec 2010 22:00:09 +0000 (00:00 +0200)
gst/gstelementfactory.c

index de9fb6b..8294691 100644 (file)
@@ -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);
 }