diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2020-06-25 13:46:16 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2020-06-25 13:46:16 +0200 |
commit | 3cc0abf6eac449a0eb29c18545dfa2f6c33b5e21 (patch) | |
tree | 6dfb1bbc23e22e0ee514f7dd6eacf2e9ab99b235 /device.c | |
parent | 35b95c2b004a6418414e6889d5d3b810edc3e496 (diff) | |
download | vdr-3cc0abf6eac449a0eb29c18545dfa2f6c33b5e21.tar.gz vdr-3cc0abf6eac449a0eb29c18545dfa2f6c33b5e21.tar.bz2 |
Adjusted device selection in GetDeviceForTransponder() to that in GetDevice()
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.32 2020/06/12 09:28:44 kls Exp $ + * $Id: device.c 4.33 2020/06/25 13:46:16 kls Exp $ */ #include "device.h" @@ -426,7 +426,7 @@ cDevice *cDevice::GetDeviceForTransponder(const cChannel *Channel, int Priority) return d; // if any device is tuned to the transponder, we're done if (d->ProvidesTransponder(Channel)) { if (d->MaySwitchTransponder(Channel)) - Device = d; // this device may switch to the transponder without disturbing any receiver or live view + 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() if (d->Priority() < Priority && (!Device || d->Priority() < Device->Priority())) Device = d; // use this one only if no other with less impact can be found |