Small cleanup

Original commit message from CVS:
Small cleanup
This commit is contained in:
Wim Taymans 2003-01-27 21:37:13 +00:00
parent 07e409f402
commit 1c324a59f0

View file

@ -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,