Decoder --show output: List decoder tags.
authorUwe Hermann <uwe@hermann-uwe.de>
Fri, 15 Mar 2019 13:34:19 +0000 (14:34 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
Fri, 15 Mar 2019 13:34:19 +0000 (14:34 +0100)
show.c

diff --git a/show.c b/show.c
index 73240ee..dbbc632 100644 (file)
--- a/show.c
+++ b/show.c
@@ -770,6 +770,15 @@ static void show_pd_detail_single(const char *pd)
                } else {
                        printf("None.\n");
                }
+               printf("Decoder tags:\n");
+               if (dec->tags) {
+                       for (l = dec->tags; l; l = l->next) {
+                               str = l->data;
+                               printf("- %s\n", str);
+                       }
+               } else {
+                       printf("None.\n");
+               }
                printf("Annotation classes:\n");
                if (dec->annotations) {
                        for (l = dec->annotations; l; l = l->next) {