diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-02 10:19:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-02 10:19:00 +0100 |
commit | 28bc34b245ffdf0c205f0c5f2624e5c7d94d3c54 (patch) | |
tree | 94ac74945d31647fb7087e9d36e30d8d74cb40ec /receiver.c | |
parent | a188928e6ea462e45da7c363a3098065c4691953 (diff) | |
download | vdr-28bc34b245ffdf0c205f0c5f2624e5c7d94d3c54.tar.gz vdr-28bc34b245ffdf0c205f0c5f2624e5c7d94d3c54.tar.bz2 |
Revised priority handling to allow receivers with a priority that is lower than that of live viewing
Diffstat (limited to 'receiver.c')
-rw-r--r-- | receiver.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |