diff options
author | Juan A. Suarez Romero <jasuarez@igalia.com> | 2014-04-28 06:41:25 +0000 |
---|---|---|
committer | Juan A. Suarez Romero <jasuarez@igalia.com> | 2014-04-28 06:41:25 +0000 |
commit | b4c19cc049108ece063bc4a49c33ac460d3df71d (patch) | |
tree | 1537fe7d0dd4d146e82581beb85cfc990376077f /tools | |
parent | 5c3f284c42ad2cc276de6486ddc772befade6dba (diff) | |
download | grilo-b4c19cc049108ece063bc4a49c33ac460d3df71d.tar.gz |
grl-inspect: Print source tags
Diffstat (limited to 'tools')
-rw-r--r-- | tools/grilo-inspect/grl-inspect.c | 10 |
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 */ |