[grilo] grl-inspect: Print source tags



commit b4c19cc049108ece063bc4a49c33ac460d3df71d
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Mon Apr 28 06:41:25 2014 +0000

    grl-inspect: Print source tags

 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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]