summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJuan A. Suarez Romero <jasuarez@igalia.com>2014-04-28 06:41:25 +0000
committerJuan A. Suarez Romero <jasuarez@igalia.com>2014-04-28 06:41:25 +0000
commitb4c19cc049108ece063bc4a49c33ac460d3df71d (patch)
tree1537fe7d0dd4d146e82581beb85cfc990376077f /tools
parent5c3f284c42ad2cc276de6486ddc772befade6dba (diff)
grl-inspect: Print source tags
Diffstat (limited to 'tools')
-rw-r--r--tools/grilo-inspect/grl-inspect.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/grilo-inspect/grl-inspect.c b/tools/grilo-inspect/grl-inspect.c
index 266b6d3..650222c 100644
--- a/tools/grilo-inspect/grl-inspect.c
+++ b/tools/grilo-inspect/grl-inspect.c
@@ -293,6 +293,7 @@ introspect_source (const gchar *source_id)
GrlPlugin *plugin;
GrlSource *source;
GrlSupportedOps supported_ops;
+ const gchar **tags;
const gchar *value;
gchar *key;
@@ -329,6 +330,15 @@ introspect_source (const gchar *source_id)
g_print (" %-20s %d\n", "Rank:",
grl_source_get_rank (source));
+ /* Print tags */
+ tags = grl_source_get_tags (source);
+ if (tags) {
+ g_print (" %-20s %s", "Tags:", *tags);
+ while (*(++tags)) {
+ g_print (", %s", *tags);
+ }
+ g_print ("\n");
+ }
g_print ("\n");
/* Print supported media */