diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2011-09-04 16:20:08 +0200 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2011-09-04 16:20:08 +0200 |
commit | c5908321b8f3878fa087a788025339a98714df14 (patch) | |
tree | 8ffba58fdacbafc79d68096cbc941e64a8da91a6 | |
parent | 0f4e514ea0a35f2fea6638fac2c2d85337aeb0d8 (diff) | |
download | vdr-plugin-dynamite-c5908321b8f3878fa087a788025339a98714df14.tar.gz vdr-plugin-dynamite-c5908321b8f3878fa087a788025339a98714df14.tar.bz2 |
auto-wakeup and idle-again now works correctly if the device is not used with OpenDvr in the meantimev0.0.7c
-rw-r--r-- | HISTORY | 4 | ||||
-rw-r--r-- | dynamicdevice.c | 8 | ||||
-rw-r--r-- | dynamite.c | 2 |
3 files changed, 11 insertions, 3 deletions
@@ -180,3 +180,7 @@ VDR Plugin 'dynamite' Revision History 2011-09-04: Version 0.0.7b - correct timeout evaluation for auto-idle + +2011-09-04: Version 0.0.7c + +- auto-wakeup and idle-again now works correctly if the device is not used with "OpenDvr" in the meantime diff --git a/dynamicdevice.c b/dynamicdevice.c index 5191846..d35124d 100644 --- a/dynamicdevice.c +++ b/dynamicdevice.c @@ -325,10 +325,14 @@ eDynamicDeviceReturnCode cDynamicDevice::SetIdle(const char *DevPath, bool Idle) } else if (idleHook && !Idle) CallIdleHook(**idleHook, dynamicdevice[index]->GetDevPath(), Idle); - if (Idle) + if (Idle) { dynamicdevice[index]->idleSince = time(NULL); - else + dynamicdevice[index]->lastCloseDvr = dynamicdevice[index]->idleSince; + } + else { dynamicdevice[index]->idleSince = 0; + dynamicdevice[index]->lastCloseDvr = time(NULL); + } return ddrcSuccess; } @@ -10,7 +10,7 @@ #include "menu.h" #include "monitor.h" -static const char *VERSION = "0.0.7b"; +static const char *VERSION = "0.0.7c"; static const char *DESCRIPTION = tr("attach/detach devices on the fly"); static const char *MAINMENUENTRY = NULL; |