summaryrefslogtreecommitdiff
path: root/receiver.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-12 14:12:19 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-12 14:12:19 +0100
commit6b229d7d5f6377a930191d9ba469b7707b8eb8a5 (patch)
treeee391c59906522d890d2de1dabe37a028f29ecea /receiver.c
parent67fff7f4fcb83b5e1439bd7b8b3952ae3f423bc3 (diff)
downloadvdr-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.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/receiver.c b/receiver.c
index a3811003..d8f51e68 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 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) {