diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-08-20 11:54:40 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-08-20 11:55:44 +0100 |
commit | a01e5b8dca00c701965f871c29486d339f03b017 (patch) | |
tree | 90ba3dd4fe37c6f9420ebee6762786a7cd181297 | |
parent | 9f0e832c6c2eeee2d7bb2f4ea6fba63294b6c77f (diff) |
pluginfeature: add guard to gst_plugin_feature_type_name_filter
So we don't just crash if there's a refcounting bug somewhere else.
-rw-r--r-- | gst/gstpluginfeature.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gstpluginfeature.c b/gst/gstpluginfeature.c index e7e5038820..a38122aec0 100644 --- a/gst/gstpluginfeature.c +++ b/gst/gstpluginfeature.c @@ -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)))); |