summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-02-06 14:23:03 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-02-06 14:23:03 +0100
commit644a9f07f26df58b7d79cea8ea961c2232a092be (patch)
tree3f47c7be9bdb0af8ac5db55e2932c3e9cd0b153b /dvbdevice.c
parent2517b2ee8df0a10ae03135a62a9356d4aebdfe64 (diff)
downloadvdr-644a9f07f26df58b7d79cea8ea961c2232a092be.tar.gz
vdr-644a9f07f26df58b7d79cea8ea961c2232a092be.tar.bz2
Implemented cDeviceHook
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 07e2dbb1..05b89fc1 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 2.24 2010/01/04 14:06:24 kls Exp $
+ * $Id: dvbdevice.c 2.25 2010/02/06 13:44:08 kls Exp $
*/
#include "dvbdevice.h"
@@ -608,10 +608,12 @@ bool cDvbDevice::ProvidesTransponder(const cChannel *Channel) const
if (!ProvidesSource(Channel->Source()))
return false; // doesn't provide source
if (!cSource::IsSat(Channel->Source()))
- return true; // source is sufficient for non sat
+ return DeviceHooksProvidesTransponder(Channel); // source is sufficient for non sat
if (frontendType == SYS_DVBS && Channel->System() == SYS_DVBS2)
return false; // requires modulation system which frontend doesn't provide
- return !Setup.DiSEqC || Diseqcs.Get(Channel->Source(), Channel->Frequency(), Channel->Polarization());
+ if (!Setup.DiSEqC || Diseqcs.Get(Channel->Source(), Channel->Frequency(), Channel->Polarization()))
+ return DeviceHooksProvidesTransponder(Channel);
+ return false;
}
bool cDvbDevice::ProvidesChannel(const cChannel *Channel, int Priority, bool *NeedsDetachReceivers) const