diff options
author | Frank Schmirler <vdr@schmirler.de> | 2012-03-10 23:44:51 +0100 |
---|---|---|
committer | Frank Schmirler <vdr@schmirler.de> | 2012-03-10 23:44:51 +0100 |
commit | 5a3c5357781d8c8e04c28a1799d6f6a0e2065daf (patch) | |
tree | 4a0e65f38f4c48088afc7c6c421518c4d061cb8a | |
parent | 173d2cbb7aa3ff6d39449d618d4a944faa9be517 (diff) | |
download | vdr-plugin-streamdev-5a3c5357781d8c8e04c28a1799d6f6a0e2065daf.tar.gz vdr-plugin-streamdev-5a3c5357781d8c8e04c28a1799d6f6a0e2065daf.tar.bz2 |
API change of VDR 1.7.26: Use "occupied" instead of "avoid device".
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | server/connection.c | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -1,6 +1,7 @@ VDR Plugin 'streamdev' Revision History --------------------------------------- +- API change of VDR 1.7.26: Use "occupied" instead of "avoid device". - Fixed ProvidesChannel() on client always returning true since the new timeout option has been added. - Updated Finnish translation (thanks to Rolf Ahrenberg) diff --git a/server/connection.c b/server/connection.c index 9b57980..0f1d3f3 100644 --- a/server/connection.c +++ b/server/connection.c @@ -44,7 +44,12 @@ void cSwitchLive::Switch(void) { mutex.Lock(); if (channel && device) { +#if APIVERSNUM >= 10722 + cDevice *d = device; + d->SetOccupied(10); +#else cDevice::SetAvoidDevice(device); +#endif if (!Channels.SwitchTo(cDevice::CurrentChannel())) { if (StreamdevServerSetup.SuspendMode == smAlways) { Channels.SwitchTo(channel->Number()); @@ -55,6 +60,9 @@ void cSwitchLive::Switch(void) device = NULL; } } +#if APIVERSNUM >= 10722 + d->SetOccupied(0); +#endif // make sure we don't come in here next time channel = NULL; switched.Signal(); |