summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--server/connection.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index d0d04ec..cbcfd28 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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();