From 395390fb329c9e7ded0240d6d0ae6fe29bda1dbf Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Tue, 9 Dec 2014 21:56:32 +0200 Subject: [PATCH] Added a device hook support for ProvidesTransponder(). --- device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/device.c b/device.c index 13ca303..2b9c4f7 100644 --- a/device.c +++ b/device.c @@ -232,7 +232,9 @@ bool cSatipDevice::ProvidesSource(int sourceP) const bool cSatipDevice::ProvidesTransponder(const cChannel *channelP) const { debug1("%s (%d) transponder=%d source=%c [device %u]", __PRETTY_FUNCTION__, channelP ? channelP->Number() : -1, channelP ? channelP->Transponder() : -1, channelP ? cSource::ToChar(channelP->Source()) : '?', deviceIndexM); - return (ProvidesSource(channelP->Source())); + if (!ProvidesSource(channelP->Source())) + return false; + return DeviceHooksProvidesTransponder(channelP); } bool cSatipDevice::ProvidesChannel(const cChannel *channelP, int priorityP, bool *needsDetachReceiversP) const