diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-12 14:12:19 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-12 14:12:19 +0100 |
commit | 6b229d7d5f6377a930191d9ba469b7707b8eb8a5 (patch) | |
tree | ee391c59906522d890d2de1dabe37a028f29ecea /receiver.c | |
parent | 67fff7f4fcb83b5e1439bd7b8b3952ae3f423bc3 (diff) | |
download | vdr-6b229d7d5f6377a930191d9ba469b7707b8eb8a5.tar.gz vdr-6b229d7d5f6377a930191d9ba469b7707b8eb8a5.tar.bz2 |
Added functions to set and retrieve the priority of a cReceiver
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) { |