summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-04-18 14:30:47 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2015-04-18 14:30:47 +0200
commitfa701228d76e329161f84057c7bb5693026c3fa3 (patch)
tree73c9c3406e81268abeb4aa702076a6a1707de3f7 /vdr.c
parent7aef23e97f156f2b1601125e5e39080bb269c9a0 (diff)
downloadvdr-fa701228d76e329161f84057c7bb5693026c3fa3.tar.gz
vdr-fa701228d76e329161f84057c7bb5693026c3fa3.tar.bz2
The command line option -D now accepts the value '-' (as in -D-), which prevents VDR from using any DVB devices
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/vdr.c b/vdr.c
index 71a72f2e..0243a297 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 3.16 2015/02/10 14:13:12 kls Exp $
+ * $Id: vdr.c 4.1 2015/04/18 14:22:47 kls Exp $
*/
#include <getopt.h>
@@ -301,7 +301,11 @@ int main(int argc, char *argv[])
break;
case 'd': DaemonMode = true;
break;
- case 'D': if (isnumber(optarg)) {
+ case 'D': if (*optarg == '-') {
+ cDvbDevice::useDvbDevices = false;
+ break;
+ }
+ if (isnumber(optarg)) {
int n = atoi(optarg);
if (0 <= n && n < MAXDEVICES) {
cDevice::SetUseDevice(n);
@@ -536,7 +540,9 @@ int main(int argc, char *argv[])
" -d, --daemon run in daemon mode\n"
" -D NUM, --device=NUM use only the given DVB device (NUM = 0, 1, 2...)\n"
" there may be several -D options (default: all DVB\n"
- " devices will be used)\n"
+ " devices will be used); if -D- is given, no DVB\n"
+ " devices will be used at all, independent of any\n"
+ " other -D options\n"
" --dirnames=PATH[,NAME[,ENC]]\n"
" set the maximum directory path length to PATH\n"
" (default: %d); if NAME is also given, it defines\n"