From 35188bbe39bd16bced25a91c2411219fa0367077 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 4 Oct 2005 11:10:04 +0000 Subject: gst/gsterror.c: Add another error string used in a few existing plugins. Original commit message from CVS: * gst/gsterror.c: (_gst_stream_errors_init): Add another error string used in a few existing plugins. * gst/gstplugin.c: * gst/gstpluginfeature.c: (gst_plugin_feature_load): * tools/gst-inspect.c: (print_element_info): When a feature disappears from a plugin (and the feature exists in the cached registry file), things went horribly wrong. This isn't a complete fix, we should actually be removing the 'missing' features from the features list when we load the actual plugin. That's not yet implemented. --- gst/gstpluginfeature.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gst/gstpluginfeature.c') diff --git a/gst/gstpluginfeature.c b/gst/gstpluginfeature.c index ac5a27807..78b47346d 100644 --- a/gst/gstpluginfeature.c +++ b/gst/gstpluginfeature.c @@ -118,9 +118,13 @@ gst_plugin_feature_load (GstPluginFeature * feature) gst_registry_lookup_feature (gst_registry_get_default (), feature->name); if (real_feature == NULL) { - g_critical + GST_INFO ("Loaded plugin containing feature '%s', but feature disappeared.", feature->name); + } else if (!real_feature->loaded) { + GST_INFO ("Tried to load plugin containing feature '%s', but feature was " + "not found.", real_feature->name); + return NULL; } return real_feature; -- cgit v1.2.3