From 24ba8175a3983d653c89074f3932c8f61e880abf Mon Sep 17 00:00:00 2001 From: Johns Date: Thu, 22 Mar 2012 16:06:32 +0100 Subject: [PATCH] Disable suspend on inactivity until player fixed. --- softhddevice.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/softhddevice.cpp b/softhddevice.cpp index 232d43b..1cb7321 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -1164,6 +1164,9 @@ void cSoftHdDevice::StillPicture(const uchar * data, int length) ** ** @param poller file handles (unused) ** @param timeout_ms timeout in ms to become ready +** +** @retval true if ready +** @retval false if busy */ bool cSoftHdDevice::Poll( __attribute__ ((unused)) cPoller & poller, int timeout_ms) @@ -1547,7 +1550,9 @@ void cPluginSoftHdDevice::MainThreadHook(void) DoMakePrimary = 0; } // check if user is inactive, automatic enter suspend mode - if (SuspendMode == NOT_SUSPENDED && ShutdownHandler.IsUserInactive()) { + // FIXME: cControl prevents shutdown, disable this until fixed + // FIXME: move this to ::Housekeeping + if (0 && SuspendMode == NOT_SUSPENDED && ShutdownHandler.IsUserInactive()) { // don't overwrite already suspended suspend mode cControl::Launch(new cSoftHdControl); cControl::Attach();