mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
elementfactory: meta-data can be NULL
This commit is contained in:
parent
2f94ad3d6c
commit
2d17d86ba8
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue