cec: reset m_bPowerUpEventReceived in CVLCommandHandler when the device lets us know...
[deb_libcec.git] / src / lib / implementations / VLCommandHandler.cpp
index 642b3839a456d6cef69d75bca0092d02a92a71e7..74b26509569c11db5f853a5c9f07951116483dad 100644 (file)
@@ -164,6 +164,16 @@ bool CVLCommandHandler::PowerUpEventReceived(void)
   return m_bPowerUpEventReceived;
 }
 
+int CVLCommandHandler::HandleStandby(const cec_command &command)
+{
+  {
+    CLockObject lock(m_mutex);
+    m_bPowerUpEventReceived = false;
+  }
+
+  return CCECCommandHandler::HandleStandby(command);
+}
+
 int CVLCommandHandler::HandleVendorCommand(const cec_command &command)
 {
   // some vendor command voodoo that will enable more buttons on the remote