[dvblast-devel] Show tunner name in dvblastctl fe-status command.

Jeremy Poulter git at videolan.org
Thu Oct 18 12:12:42 CEST 2012


dvblast | branch: master | Jeremy Poulter <jeremy.poulter at oregan.net> | Thu Oct 18 13:04:38 2012 +0300| [552fd4246a3ffcb0be01d2b862dc07d3a98fbd39] | committer: Georgi Chorbadzhiyski

Show tunner name in dvblastctl fe-status command.

Here is a small patch to add the tunner name to the output of the
dvblastctl fe-status command.

This was handy for me to enable be to find the DVB-T2 tuner out of
the 6 other DVB-T tuners.

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=552fd4246a3ffcb0be01d2b862dc07d3a98fbd39
---

 dvblastctl.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dvblastctl.c b/dvblastctl.c
index 9b5dbf6..1cb3cc2 100644
--- a/dvblastctl.c
+++ b/dvblastctl.c
@@ -573,6 +573,12 @@ int main( int i_argc, char **ppsz_argv )
         else \
             printf( "%s: %u\n", STRINGIFY(x), p_ret->info.x ); \
     } while(0)
+
+        if ( i_print_type == PRINT_XML )
+            printf( " <SETTING name=\"%s\"/>\n", p_ret->info.name );
+        else
+            printf( "name: %s\n", p_ret->info.name );
+
         PRINT_INFO( frequency_min );
         PRINT_INFO( frequency_max );
         PRINT_INFO( frequency_stepsize );



More information about the dvblast-devel mailing list