summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-07-22 14:11:02 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-07-22 14:11:02 +0200
commit92e4e131d015e278fbae178126743ccc8b01aaec (patch)
tree833509bbccff9b44191d7e8f348c68022d3baffe
parent375aa2563ad24f127874f45b87a1e70a2fbda50d (diff)
downloadvdr-92e4e131d015e278fbae178126743ccc8b01aaec.tar.gz
vdr-92e4e131d015e278fbae178126743ccc8b01aaec.tar.bz2
cDevice::GetDevice() now prefers any device that's already receiving and doesn't require detatching receivers
-rw-r--r--CONTRIBUTORS2
-rw-r--r--HISTORY2
-rw-r--r--device.c4
3 files changed, 6 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 09893f4b..afae3683 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1936,6 +1936,8 @@ Prakash Punnoor <prakash@punnoor.de>
Anssi Hannula <anssi.hannula@gmail.com>
for a patch that was used to implement processing the "frequency list descriptor"
+ for suggesting that cDevice::GetDevice() should prefer any device that's already
+ receiving and doesn't require detatching receivers
Antti Hartikainen <ami+vdr@ah.fi>
for updating 'S13E' in 'sources.conf'
diff --git a/HISTORY b/HISTORY
index e6f100ca..c9b0efd8 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4826,3 +4826,5 @@ Video Disk Recorder Revision History
some superfluous semicolons in ci.c (thanks to Marco Schlüßler).
- Fixed handling client side termination of SVDRP connections (thanks to Frank
Schmirler).
+- cDevice::GetDevice() now prefers any device that's already receiving and doesn't
+ require detatching receivers (suggested by Anssi Hannula).
diff --git a/device.c b/device.c
index 9b28ab29..8f451d71 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 1.132 2006/07/22 13:18:34 kls Exp $
+ * $Id: device.c 1.133 2006/07/22 14:06:11 kls Exp $
*/
#include "device.h"
@@ -292,7 +292,7 @@ cDevice *cDevice::GetDevice(const cChannel *Channel, int Priority, bool *NeedsDe
// to their individual severity, where the one listed first will make the most
// difference, because it results in the most significant bit of the result.
uint imp = 0;
- imp <<= 1; imp |= !device[i]->Receiving() || ndr; // use receiving devices if we don't need to detach existing receivers
+ imp <<= 1; imp |= !device[i]->Receiving(true) || ndr; // use receiving devices if we don't need to detach existing receivers
imp <<= 1; imp |= device[i]->Receiving(); // avoid devices that are receiving
imp <<= 1; imp |= device[i] == ActualDevice(); // avoid the actual device (in case of Transfer Mode)
imp <<= 1; imp |= device[i]->IsPrimaryDevice(); // avoid the primary device