From: Michael Smith Date: Fri, 7 Oct 2005 10:32:24 +0000 (+0000) Subject: Print out feature and plugin count at the end when printing out all features. X-Git-Tag: RELEASE-0_9_4~216 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09fb8afea5fcb211ae323ac17bb0cde99c19b394;p=platform%2Fupstream%2Fgstreamer.git 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? --- diff --git a/ChangeLog b/ChangeLog index b1690e7..aed5ba6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,23 @@ +2005-10-07 Michael Smith + + * tools/gst-inspect.c: + Print out feature and plugin count at the end when printing out + all features. + +2005-10-04 Michael Smith + + * 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 * check/gst/gstiterator.c: (GST_START_TEST): diff --git a/common b/common index 7d17546..fb4bd52 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 7d175466d3319fe55327608ea1f7a20619ab5634 +Subproject commit fb4bd52a0a6e882bd8eb0ca836edd94d3fcaea42 diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 2baa23c..b339d78 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -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