From 28bc34b245ffdf0c205f0c5f2624e5c7d94d3c54 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 2 Mar 2012 10:19:00 +0100 Subject: Revised priority handling to allow receivers with a priority that is lower than that of live viewing --- receiver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'receiver.c') diff --git a/receiver.c b/receiver.c index 6a9ba045..372cb2c9 100644 --- a/receiver.c +++ b/receiver.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: receiver.c 2.4 2010/12/12 23:16:25 kls Exp $ + * $Id: receiver.c 2.5 2012/02/29 11:49:36 kls Exp $ */ #include "receiver.h" @@ -16,7 +16,7 @@ cReceiver::cReceiver(tChannelID ChannelID, int Priority, int Pid, const int *Pid { device = NULL; channelID = ChannelID; - priority = Priority; + priority = constrain(Priority, MINPRIORITY, MAXPRIORITY); numPids = 0; AddPid(Pid); AddPids(Pids1); @@ -28,7 +28,7 @@ cReceiver::cReceiver(tChannelID ChannelID, int Priority, int Pid, const int *Pid cReceiver::cReceiver(const cChannel *Channel, int Priority) { device = NULL; - priority = Priority; + priority = constrain(Priority, MINPRIORITY, MAXPRIORITY); numPids = 0; SetPids(Channel); } -- cgit v1.2.3