summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2011-09-04 16:20:08 +0200
committerLars Hanisch <dvb@flensrocker.de>2011-09-04 16:20:08 +0200
commitc5908321b8f3878fa087a788025339a98714df14 (patch)
tree8ffba58fdacbafc79d68096cbc941e64a8da91a6
parent0f4e514ea0a35f2fea6638fac2c2d85337aeb0d8 (diff)
downloadvdr-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--HISTORY4
-rw-r--r--dynamicdevice.c8
-rw-r--r--dynamite.c2
3 files changed, 11 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index f2e0dbf..406d444 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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;
}
diff --git a/dynamite.c b/dynamite.c
index fd2a813..763be6a 100644
--- a/dynamite.c
+++ b/dynamite.c
@@ -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;