Commit b5af526c authored by Stephane Cerveau's avatar Stephane Cerveau

gst_element_factory_get_metadata: protect from null factory

parent 919a5303
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment