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:
Tim-Philipp Müller 2009-08-20 11:54:40 +01:00
parent 9f0e832c6c
commit a01e5b8dca

View file

@ -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))));