Print cache info too

Original commit message from CVS:
Print cache info too
This commit is contained in:
Wim Taymans 2002-11-29 18:18:34 +00:00
parent 91df0963a7
commit 025554e343

View file

@ -817,6 +817,13 @@ print_element_list (void)
g_print ("%s: %s: %s\n", plugin->name, g_print ("%s: %s: %s\n", plugin->name,
GST_PLUGIN_FEATURE_NAME (factory), factory->longdesc); GST_PLUGIN_FEATURE_NAME (factory), factory->longdesc);
} }
else if (GST_IS_CACHE_FACTORY (feature)) {
GstCacheFactory *factory;
factory = GST_CACHE_FACTORY (feature);
g_print ("%s: %s: %s\n", plugin->name,
GST_PLUGIN_FEATURE_NAME (factory), factory->longdesc);
}
else if (GST_IS_TYPE_FACTORY (feature)) { else if (GST_IS_TYPE_FACTORY (feature)) {
GstTypeFactory *factory; GstTypeFactory *factory;
@ -855,6 +862,7 @@ print_plugin_info (GstPlugin *plugin)
gint num_autoplug = 0; gint num_autoplug = 0;
gint num_types = 0; gint num_types = 0;
gint num_schedulers = 0; gint num_schedulers = 0;
gint num_caches = 0;
gint num_other = 0; gint num_other = 0;
g_print ("Plugin Details:\n"); g_print ("Plugin Details:\n");
@ -885,6 +893,13 @@ print_plugin_info (GstPlugin *plugin)
g_print (" %s: %s\n", GST_OBJECT_NAME (factory), factory->longdesc); g_print (" %s: %s\n", GST_OBJECT_NAME (factory), factory->longdesc);
num_autoplug++; num_autoplug++;
} }
else if (GST_IS_CACHE_FACTORY (feature)) {
GstCacheFactory *factory;
factory = GST_CACHE_FACTORY (feature);
g_print (" %s: %s\n", GST_OBJECT_NAME (factory), factory->longdesc);
num_caches++;
}
else if (GST_IS_TYPE_FACTORY (feature)) { else if (GST_IS_TYPE_FACTORY (feature)) {
GstTypeFactory *factory; GstTypeFactory *factory;
@ -920,6 +935,8 @@ print_plugin_info (GstPlugin *plugin)
g_print (" +-- %d types\n", num_types); g_print (" +-- %d types\n", num_types);
if (num_schedulers > 0) if (num_schedulers > 0)
g_print (" +-- %d schedulers\n", num_schedulers); g_print (" +-- %d schedulers\n", num_schedulers);
if (num_caches > 0)
g_print (" +-- %d caches\n", num_caches);
if (num_other > 0) if (num_other > 0)
g_print (" +-- %d other objects\n", num_other); g_print (" +-- %d other objects\n", num_other);