Print out feature and plugin count at the end when printing out all features.
authorMichael Smith <msmith@xiph.org>
Fri, 7 Oct 2005 10:32:24 +0000 (10:32 +0000)
committerMichael Smith <msmith@xiph.org>
Fri, 7 Oct 2005 10:32:24 +0000 (10:32 +0000)
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?

ChangeLog
common
tools/gst-inspect.c

index b1690e7..aed5ba6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+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):
diff --git a/common b/common
index 7d17546..fb4bd52 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 7d175466d3319fe55327608ea1f7a20619ab5634
+Subproject commit fb4bd52a0a6e882bd8eb0ca836edd94d3fcaea42
index 2baa23c..b339d78 100644 (file)
@@ -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