From d7652d89ca79e30c6296ec71882b2de6b7728c63 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Tue, 16 Jul 2013 13:12:20 +0200 Subject: [PATCH] Start cSuspendCtl hidden or it will prevent idle shutdown. As long as a cControl is not hidden, cControl::Control() will return a value and LastInteract is updated in the VDR main loop. --- CONTRIBUTORS | 3 +++ HISTORY | 2 ++ server/suspend.c | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e4aad04..ed94b7c 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -214,3 +214,6 @@ Chris Tallon macmenot for adapting Makefiles to VDR 1.7.36+ + +thomasjfox + for fixing cSuspendCtl preventing idle shutdown diff --git a/HISTORY b/HISTORY index 23d64c2..3fcd666 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,8 @@ VDR Plugin 'streamdev' Revision History --------------------------------------- +- Start cSuspendCtl hidden or it will prevent idle shutdown (thanks to + thomasjfox) - Fixed recordings menu inode numbers: ino_t is a long long on some systems - Updated Slovak translation (thanks to Milan Hrala) - Adapted Makefiles to VDR 1.7.36+ (thanks to macmenot). Old makefiles have diff --git a/server/suspend.c b/server/suspend.c index b6e1382..fd351b6 100644 --- a/server/suspend.c +++ b/server/suspend.c @@ -39,7 +39,7 @@ void cSuspendLive::Action(void) { bool cSuspendCtl::m_Active = false; cSuspendCtl::cSuspendCtl(void): - cControl(m_Suspend = new cSuspendLive) { + cControl(m_Suspend = new cSuspendLive, true) { m_Active = true; }