mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 17:16:51 +00:00
API change of VDR 1.7.26: Use "occupied" instead of "avoid device".
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user