while (features) {
GstPluginFeature *feature;
+ if (G_UNLIKELY (features->data == NULL))
+ goto next;
feature = GST_PLUGIN_FEATURE (features->data);
featurecount++;
g_type_name (G_OBJECT_TYPE (feature)));
}
+ next:
features = g_list_next (features);
}
gst_plugin_feature_get_name (feature));
num_typefinders++;
- } else {
+ } else if (feature) {
n_print (" %s (%s)\n", gst_object_get_name (GST_OBJECT (feature)),
g_type_name (G_OBJECT_TYPE (feature)));
num_other++;