summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-03-22 16:06:32 +0100
committerJohns <johns98@gmx.net>2012-03-22 16:06:32 +0100
commit24ba8175a3983d653c89074f3932c8f61e880abf (patch)
tree57d8bb4ab7e0c5f08a3f585553d8073f5e3f13a0
parentfe24cbb1820e799e4c6a5b62e3007e4179cd4d70 (diff)
downloadvdr-plugin-softhddevice-24ba8175a3983d653c89074f3932c8f61e880abf.tar.gz
vdr-plugin-softhddevice-24ba8175a3983d653c89074f3932c8f61e880abf.tar.bz2
Disable suspend on inactivity until player fixed.
-rw-r--r--softhddevice.cpp7
1 files changed, 6 insertions, 1 deletions
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();