mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
pluginfeature: add guard to gst_plugin_feature_type_name_filter
So we don't just crash if there's a refcounting bug somewhere else.
This commit is contained in:
parent
9f0e832c6c
commit
a01e5b8dca
1 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,8 @@ gboolean
|
|||
gst_plugin_feature_type_name_filter (GstPluginFeature * feature,
|
||||
GstTypeNameData * data)
|
||||
{
|
||||
g_return_val_if_fail (GST_IS_PLUGIN_FEATURE (feature), FALSE);
|
||||
|
||||
return ((data->type == 0 || data->type == G_OBJECT_TYPE (feature)) &&
|
||||
(data->name == NULL
|
||||
|| !strcmp (data->name, GST_PLUGIN_FEATURE_NAME (feature))));
|
||||
|
|
Loading…
Reference in a new issue