one extra check
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 10 Sep 2002 07:56:06 +0000 (07:56 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 10 Sep 2002 07:56:06 +0000 (07:56 +0000)
Original commit message from CVS:
one extra check

gst/gstpluginfeature.c

index 19e2895..90c1442 100644 (file)
@@ -86,9 +86,11 @@ gst_plugin_feature_ensure_loaded (GstPluginFeature *feature)
 {
   GstPlugin *plugin = (GstPlugin *) (feature->manager);
 
+  g_assert (feature);
   if (plugin && !gst_plugin_is_loaded (plugin)) {
     if (GST_IS_REGISTRY (plugin->manager)) {
-      GST_DEBUG (GST_CAT_PLUGIN_LOADING, "loading plugin %s for feature", plugin->name);
+      GST_DEBUG (GST_CAT_PLUGIN_LOADING, 
+                "loading plugin %s for feature", plugin->name);
 
       if (gst_registry_load_plugin (GST_REGISTRY (plugin->manager), plugin) != GST_REGISTRY_OK)
        return FALSE;