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