diff options
author | Michael Smith <msmith@xiph.org> | 2005-10-04 11:10:04 +0000 |
---|---|---|
committer | Michael Smith <msmith@xiph.org> | 2005-10-04 11:10:04 +0000 |
commit | 35188bbe39bd16bced25a91c2411219fa0367077 (patch) | |
tree | 5ba70b3ed82ad4c9073ff084e0462fc0276eb3d4 /gst/gstpluginfeature.c | |
parent | 0a55c5f642d597400475d58f06bf8cf0dbed46cc (diff) |
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.
Diffstat (limited to 'gst/gstpluginfeature.c')
-rw-r--r-- | gst/gstpluginfeature.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |