diff options
Diffstat (limited to 'client/device.c')
-rw-r--r-- | client/device.c | 15 |
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; |