gst_element_factory_get_metadata: protect from null factory
This commit is contained in:
parent
919a530334
commit
b5af526c9c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user