diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2020-06-27 10:24:46 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2020-06-27 10:24:46 +0200 |
commit | a526eee1651ca643a3f3c88a0c852a43261a7ebb (patch) | |
tree | cba7a2f1b987c041e3a17966e228566a8f459bf6 /device.c | |
parent | 848c65fe4f56b95bf26035296f77b091a16ae704 (diff) | |
download | vdr-a526eee1651ca643a3f3c88a0c852a43261a7ebb.tar.gz vdr-a526eee1651ca643a3f3c88a0c852a43261a7ebb.tar.bz2 |
Fixed the 'else if' branch in cDevice::GetDeviceForTransponder(), which hasn't been active since version 1.7.292.4.3
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 4.33 2020/06/25 13:46:16 kls Exp $ + * $Id: device.c 4.34 2020/06/27 10:24:46 kls Exp $ */ #include "device.h" @@ -427,7 +427,7 @@ cDevice *cDevice::GetDeviceForTransponder(const cChannel *Channel, int Priority) if (d->ProvidesTransponder(Channel)) { if (d->MaySwitchTransponder(Channel)) return 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() && !d->IsBonded()) { // 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 } |