Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: ntuxzap in command line
Hi Paul,
> How can be ntuxzap used in the command line ( setting a chanel with -c
> option end exit ) ?
Currently '-c' option is being ignored, I had to apply the following
patch to ntuxzap.cc, to get it to work.
Doug.
Index: ntuxzap.cc
===================================================================
RCS file: /cvs/linuxtv/DVB/apps/tuxzap/src/ntuxzap.cc,v
retrieving revision 1.11
diff -c -r1.11 ntuxzap.cc
*** ntuxzap.cc 2001/06/19 15:49:05 1.11
--- ntuxzap.cc 2001/10/10 03:47:39
***************
*** 297,303 ****
CDKALPHALIST *alphaList = (CDKALPHALIST *)NULL;
char *title = "<C></B/24>nTuxZap\n<C>";
char *label = _("</B>Channel: ");
! int c,channel = 0;
int o=0;
int enable_dvr=0;
--- 297,303 ----
CDKALPHALIST *alphaList = (CDKALPHALIST *)NULL;
char *title = "<C></B/24>nTuxZap\n<C>";
char *label = _("</B>Channel: ");
! int c,channel = -1;
int o=0;
int enable_dvr=0;
***************
*** 348,353 ****
--- 348,358 ----
} else {
cout << _("Could not find DVB input file ")
<< filen << endl;
+ }
+
+ if (channel > -1) {
+ dvb.SetChannel(channel);
+ exit (0);
}
for (int i = 0; i < NLIST; i++){
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index