diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-04-18 14:30:47 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-04-18 14:30:47 +0200 |
commit | fa701228d76e329161f84057c7bb5693026c3fa3 (patch) | |
tree | 73c9c3406e81268abeb4aa702076a6a1707de3f7 /dvbdevice.c | |
parent | 7aef23e97f156f2b1601125e5e39080bb269c9a0 (diff) | |
download | vdr-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 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index 9321f16d..0a57c67c 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 3.14 2015/01/14 12:09:19 kls Exp $ + * $Id: dvbdevice.c 4.1 2015/04/18 14:21:58 kls Exp $ */ #include "dvbdevice.h" @@ -1064,6 +1064,7 @@ cOsdItem *cDvbSourceParam::GetOsdItem(void) // --- cDvbDevice ------------------------------------------------------------ +bool cDvbDevice::useDvbDevices = true; int cDvbDevice::setTransferModeForDolbyDigital = 1; cMutex cDvbDevice::bondMutex; @@ -1234,7 +1235,7 @@ bool cDvbDevice::Initialize(void) if (Exists(Adapter, Frontend)) { if (Found < MAXDEVICES) { Found++; - if (UseDevice(NextCardIndex())) { + if (useDvbDevices && UseDevice(NextCardIndex())) { if (Probe(Adapter, Frontend)) Used++; } |