Commit 09fb8afe authored by Michael Smith's avatar Michael Smith

Print out feature and plugin count at the end when printing out all features.

Original commit message from CVS:
Print out feature and plugin count at the end when printing out
all features.

Also add a changelog entry which I'd written but not committed?
parent 25a0f8c5
2005-10-07 Michael Smith <msmith@fluendo.com>
* tools/gst-inspect.c:
Print out feature and plugin count at the end when printing out
all features.
2005-10-04 Michael Smith <msmith@fluendo.com>
* 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.
2005-10-04 Johan Dahlin <johan@gnome.org>
* check/gst/gstiterator.c: (GST_START_TEST):
......
common @ fb4bd52a
Subproject commit 7d175466d3319fe55327608ea1f7a20619ab5634
Subproject commit fb4bd52a0a6e882bd8eb0ca836edd94d3fcaea42
......@@ -825,6 +825,7 @@ print_children_info (GstElement * element)
static void
print_element_list (gboolean print_all)
{
int plugincount = 0, featurecount = 0;
GList *plugins, *orig_plugins;
orig_plugins = plugins = gst_default_registry_get_plugin_list ();
......@@ -834,6 +835,7 @@ print_element_list (gboolean print_all)
plugin = (GstPlugin *) (plugins->data);
plugins = g_list_next (plugins);
plugincount++;
orig_features = features =
gst_registry_get_feature_list_by_plugin (gst_registry_get_default (),
......@@ -842,6 +844,7 @@ print_element_list (gboolean print_all)
GstPluginFeature *feature;
feature = GST_PLUGIN_FEATURE (features->data);
featurecount++;
if (GST_IS_ELEMENT_FACTORY (feature)) {
GstElementFactory *factory;
......@@ -898,6 +901,9 @@ print_element_list (gboolean print_all)
}
gst_plugin_list_free (plugins);
g_print ("\nTotal plugins: %d\nTotal features: %d\n",
plugincount, featurecount);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment