diff options
Diffstat (limited to 'receiver.c')
-rw-r--r-- | receiver.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: receiver.c 3.2 2014/02/08 15:57:30 kls Exp $ + * $Id: receiver.c 3.3 2015/01/12 14:04:31 kls Exp $ */ #include "receiver.h" @@ -14,7 +14,7 @@ cReceiver::cReceiver(const cChannel *Channel, int Priority) { device = NULL; - priority = constrain(Priority, MINPRIORITY, MAXPRIORITY); + SetPriority(Priority); numPids = 0; SetPids(Channel); } @@ -29,6 +29,11 @@ cReceiver::~cReceiver() } } +void cReceiver::SetPriority(int Priority) +{ + priority = constrain(Priority, MINPRIORITY, MAXPRIORITY); +} + bool cReceiver::AddPid(int Pid) { if (Pid) { |