summaryrefslogtreecommitdiff
path: root/client/device.c
diff options
context:
space:
mode:
authorschmirl <schmirl>2009-01-29 07:49:04 +0000
committerschmirl <schmirl>2009-01-29 07:49:04 +0000
commitf8002f7e3140c9269af0f1434af3f0dee28f63a0 (patch)
tree194bdc0945f30bac1a0c0a2d824c471ed4b29ef3 /client/device.c
parent46b8104cd206176862e2d9462b9e105ac8494e97 (diff)
downloadvdr-plugin-streamdev-f8002f7e3140c9269af0f1434af3f0dee28f63a0.tar.gz
vdr-plugin-streamdev-f8002f7e3140c9269af0f1434af3f0dee28f63a0.tar.bz2
Added min/max priority (#508)
Modified Files: Tag: v0_4 HISTORY README i18n.c client/device.c client/setup.c client/setup.h
Diffstat (limited to 'client/device.c')
-rw-r--r--client/device.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/client/device.c b/client/device.c
index 28cb7dc..7426d4b 100644
--- a/client/device.c
+++ b/client/device.c
@@ -1,5 +1,5 @@
/*
- * $Id: device.c,v 1.18.2.1 2008/04/07 15:07:39 schmirl Exp $
+ * $Id: device.c,v 1.18.2.2 2009/01/29 07:49:05 schmirl Exp $
*/
#include "client/device.h"
@@ -91,6 +91,19 @@ bool cStreamdevDevice::ProvidesChannel(const cChannel *Channel, int Priority,
Dprintf("ProvidesChannel, Channel=%s, Prio=%d\n", Channel->Name(), Priority);
+ if (StreamdevClientSetup.MinPriority <= StreamdevClientSetup.MaxPriority)
+ {
+ if (Priority < StreamdevClientSetup.MinPriority ||
+ Priority > StreamdevClientSetup.MaxPriority)
+ return false;
+ }
+ else
+ {
+ if (Priority < StreamdevClientSetup.MinPriority &&
+ Priority > StreamdevClientSetup.MaxPriority)
+ return false;
+ }
+
if (ClientSocket.DataSocket(siLive) != NULL
&& TRANSPONDER(Channel, m_Channel))
res = true;