cec: only let SL bug out when the power state is requested twice in 5 seconds. don...
[deb_libcec.git] / src / lib / implementations / SLCommandHandler.h
index 8012f2e8913f1a59bca341ef148e4beaeb77d120..914083579f437f5a0bad49df2dc05c922c62e047 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #include "CECCommandHandler.h"
+#include "../platform/util/timeutils.h"
 
 namespace CEC
 {
@@ -65,8 +66,9 @@ namespace CEC
     virtual bool HandleFeatureAbort(const cec_command &command);
     virtual bool HandleStandby(const cec_command &command);
 
-    bool    m_bSLEnabled;
-    bool    m_bPowerStateReset;
-    bool    m_bActiveSourceSent;
+    bool               m_bSLEnabled;
+    bool               m_bPowerStateReset;
+    bool               m_bActiveSourceSent;
+    PLATFORM::CTimeout m_resetPowerState;
   };
 };