LinuxTV Patchwork cDevice::GetDeviceForTransponder(): fix a typo

login
register
mail settings
Submitter glenvt18
Date May 26, 2016, 3:58 p.m.
Message ID <1464278314-28653-1-git-send-email-glenvt18@gmail.com>
Download mbox | patch
Permalink /patch/34432/
State New
Headers show

Comments

glenvt18 - May 26, 2016, 3:58 p.m.
d->MaySwitchTransponder(Channel) is always false here

Please review,
Sergey Chernyavskiy.

---
 device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/device.c b/device.c
index 18867cd..542d120 100644
--- a/device.c
+++ b/device.c
@@ -342,7 +342,7 @@  cDevice *cDevice::GetDeviceForTransponder(const cChannel *Channel, int Priority)
          if (d->ProvidesTransponder(Channel)) {
             if (d->MaySwitchTransponder(Channel))
                Device = d; // this device may switch to the transponder without disturbing any receiver or live view
-            else if (!d->Occupied() && d->MaySwitchTransponder(Channel)) { // MaySwitchTransponder() implicitly calls Occupied()
+            else if (!d->Occupied()) { // MaySwitchTransponder() implicitly calls Occupied()
                if (d->Priority() < Priority && (!Device || d->Priority() < Device->Priority()))
                   Device = d; // use this one only if no other with less impact can be found
                }

Privacy Policy