summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-08-21 05:57:05 +0000
committerDavid Schleef <ds@schleef.org>2003-08-21 05:57:05 +0000
commit6da01e65b91975012f6673062654016401bb6276 (patch)
tree6fd71c603e39cc8f6ca02317503672dd8c553a05 /tools
parent0bdeb409207ddef32548eb0e6e9b87fb41fcb969 (diff)
show the rank of a plugin feature. (actually, only element factory at this time)
Original commit message from CVS: show the rank of a plugin feature. (actually, only element factory at this time)
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-inspect.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index 2f3970b1f..c92f72bf7 100644
--- a/tools/gst-inspect.c
+++ b/tools/gst-inspect.c
@@ -448,6 +448,23 @@ print_element_properties (GstElement *element)
g_print (" none\n");
}
+static char *
+get_rank_name (gint rank)
+{
+ switch(rank){
+ case GST_ELEMENT_RANK_NONE:
+ return "none";
+ case GST_ELEMENT_RANK_MARGINAL:
+ return "marginal";
+ case GST_ELEMENT_RANK_SECONDARY:
+ return "secondary";
+ case GST_ELEMENT_RANK_PRIMARY:
+ return "primary";
+ default:
+ return "unknown";
+ }
+}
+
static gint
print_element_info (GstElementFactory *factory)
{
@@ -480,6 +497,7 @@ print_element_info (GstElementFactory *factory)
g_print (" Version:\t%s\n", factory->details->version);
g_print (" Author(s):\t%s\n", factory->details->author);
g_print (" Copyright:\t%s\n", factory->details->copyright);
+ g_print (" Rank:\t\t%s\n", get_rank_name(GST_PLUGIN_FEATURE(factory)->rank));
g_print ("\n");
output_hierarchy (G_OBJECT_TYPE (element), 0, &maxlevel);