summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-02-15 12:22:21 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-02-15 12:22:21 +0100
commit825dd70bc4d3a247207fa6f490aa3f86376d9270 (patch)
tree6ee0aa37c8f99492f104232c049100e2d111ddeb /device.c
parent8dc6eb0cda751e7d052dc4f7efade809cb42b98e (diff)
downloadvdr-825dd70bc4d3a247207fa6f490aa3f86376d9270.tar.gz
vdr-825dd70bc4d3a247207fa6f490aa3f86376d9270.tar.bz2
Fixed handling the PrimaryLimit when requesting a device for live viewing
Diffstat (limited to 'device.c')
-rw-r--r--device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/device.c b/device.c
index 5ffc28d1..04cc7b5a 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 2.47 2012/02/12 15:44:06 kls Exp $
+ * $Id: device.c 2.48 2012/02/15 12:14:32 kls Exp $
*/
#include "device.h"
@@ -271,7 +271,7 @@ cDevice *cDevice::GetDevice(const cChannel *Channel, int Priority, bool LiveView
if (NumUsableSlots && !CamSlots.Get(j)->Assign(device[i], true))
continue; // CAM slot can't be used with this device
bool ndr;
- if (device[i]->ProvidesChannel(Channel, Priority, &ndr)) { // this device is basicly able to do the job
+ if (device[i]->ProvidesChannel(Channel, (LiveView && device[i]->IsPrimaryDevice()) ? Setup.PrimaryLimit : Priority, &ndr)) { // this device is basicly able to do the job
if (NumUsableSlots && device[i]->CamSlot() && device[i]->CamSlot() != CamSlots.Get(j))
ndr = true; // using a different CAM slot requires detaching receivers
// Put together an integer number that reflects the "impact" using