summaryrefslogtreecommitdiff
path: root/client/device.c
diff options
context:
space:
mode:
authorschmirl <schmirl>2008-04-07 14:50:32 +0000
committerschmirl <schmirl>2008-04-07 14:50:32 +0000
commit9c60fb4e42bce2fd3b6d7d9c011f1688cddd4394 (patch)
tree7410551c8e84ab6b0901a017e17c8c7b56b973db /client/device.c
parent89735cbd95ea82c309be3c2faf939d03cc8aa6eb (diff)
downloadvdr-plugin-streamdev-9c60fb4e42bce2fd3b6d7d9c011f1688cddd4394.tar.gz
vdr-plugin-streamdev-9c60fb4e42bce2fd3b6d7d9c011f1688cddd4394.tar.bz2
- changed location of streamdevhosts.conf to VDRCONFDIR/plugins/streamdev
- changed externremux.sh's default location to VDRCONFDIR/plugins/streamdev - added sample externremux.sh from http://www.vdr-wiki.de/ - stop providing channels after client has been disabled at runtime - added logging of the client device's card index - changed default suspend mode to "Always suspended" - added "Hide Mainmenu Entry" setup option on client
Diffstat (limited to 'client/device.c')
-rw-r--r--client/device.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/device.c b/client/device.c
index 708b1dc..570bab2 100644
--- a/client/device.c
+++ b/client/device.c
@@ -1,5 +1,5 @@
/*
- * $Id: device.c,v 1.17 2008/04/07 14:40:39 schmirl Exp $
+ * $Id: device.c,v 1.18 2008/04/07 14:50:32 schmirl Exp $
*/
#include "client/device.h"
@@ -28,6 +28,7 @@ cStreamdevDevice::cStreamdevDevice(void) {
m_Filters = new cStreamdevFilters;
StartSectionHandler();
+ isyslog("streamdev-client: got device number %d", CardIndex() + 1);
m_Device = this;
m_Pids = 0;
@@ -78,6 +79,10 @@ bool cStreamdevDevice::ProvidesChannel(const cChannel *Channel, int Priority,
bool res = false;
bool prio = Priority < 0 || Priority > this->Priority();
bool ndr = false;
+
+ if (!StreamdevClientSetup.StartClient)
+ return false;
+
Dprintf("ProvidesChannel, Channel=%s, Prio=%d\n", Channel->Name(), Priority);
if (ClientSocket.DataSocket(siLive) != NULL