summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-02-16 14:39:30 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-02-16 14:39:30 +0100
commit4c827ff8a453165a9aa25d20b236a59ba0b17eef (patch)
tree894b3abf02e2f7cfd7381db25096b148196f17a4 /device.c
parent8cc4f36690ceb7c17a5d9901762c3635604a9cb4 (diff)
downloadvdr-4c827ff8a453165a9aa25d20b236a59ba0b17eef.tar.gz
vdr-4c827ff8a453165a9aa25d20b236a59ba0b17eef.tar.bz2
Fixed determining the priority of the primary device in case it is neither replaying nor receiving a live channel
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 31f7aded..ca897b0f 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.72 2013/02/16 13:05:06 kls Exp $
+ * $Id: device.c 2.73 2013/02/16 14:39:30 kls Exp $
*/
#include "device.h"
@@ -1537,7 +1537,7 @@ int cDevice::PlayTs(const uchar *Data, int Length, bool VideoOnly)
int cDevice::Priority(void) const
{
int priority = IDLEPRIORITY;
- if (IsPrimaryDevice() && !Replaying() && ActualDevice() == PrimaryDevice())
+ if (IsPrimaryDevice() && !Replaying() && HasProgramme())
priority = TRANSFERPRIORITY; // we use the same value here, no matter whether it's actual Transfer Mode or real live viewing
cMutexLock MutexLock(&mutexReceiver);
for (int i = 0; i < MAXRECEIVERS; i++) {