summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-06-12 14:09:45 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-06-12 14:09:45 +0200
commitf41e3f327b5c7bf080be803af05358e061a37995 (patch)
tree389f78dc6d40b541a40da5190cdbf443ac962272 /device.c
parenteb8ad6b46d2d65b6fd532b67818c4fdf7a00fc9b (diff)
downloadvdr-f41e3f327b5c7bf080be803af05358e061a37995.tar.gz
vdr-f41e3f327b5c7bf080be803af05358e061a37995.tar.bz2
Modified cEITScanner::Process() so that it works on systems with only budget cards or a mix of DVB-S, DVB-C or DVB-T cards
Diffstat (limited to 'device.c')
-rw-r--r--device.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/device.c b/device.c
index 9b5f701d..c79f7db3 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 1.102 2005/06/05 13:28:03 kls Exp $
+ * $Id: device.c 1.103 2005/06/12 13:39:11 kls Exp $
*/
#include "device.h"
@@ -505,6 +505,15 @@ bool cDevice::ProvidesTransponder(const cChannel *Channel) const
return false;
}
+bool cDevice::ProvidesTransponderExclusively(const cChannel *Channel) const
+{
+ for (int i = 0; i < numDevices; i++) {
+ if (device[i] && device[i] != this && device[i]->ProvidesTransponder(Channel))
+ return false;
+ }
+ return true;
+}
+
bool cDevice::ProvidesChannel(const cChannel *Channel, int Priority, bool *NeedsDetachReceivers) const
{
return false;