From: Wim Taymans Date: Mon, 27 Jan 2003 21:37:13 +0000 (+0000) Subject: Small cleanup X-Git-Tag: OSLOSUMMIT1-200303051~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c324a59f035f30fd5bb20be48e2350647dbdc97;p=platform%2Fupstream%2Fgstreamer.git Small cleanup Original commit message from CVS: Small cleanup --- diff --git a/gst/gstpluginfeature.c b/gst/gstpluginfeature.c index 3616e60..c473348 100644 --- a/gst/gstpluginfeature.c +++ b/gst/gstpluginfeature.c @@ -84,9 +84,13 @@ gst_plugin_feature_init (GstPluginFeature *feature) gboolean gst_plugin_feature_ensure_loaded (GstPluginFeature *feature) { - GstPlugin *plugin = (GstPlugin *) (feature->manager); + GstPlugin *plugin; + + g_return_val_if_fail (feature != NULL, FALSE); + g_return_val_if_fail (GST_IS_PLUGIN_FEATURE (feature), FALSE); + + 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,