cec: reset m_bPowerUpEventReceived in CVLCommandHandler when the device lets us know...
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 21 Jun 2012 09:25:58 +0000 (11:25 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 21 Jun 2012 09:25:58 +0000 (11:25 +0200)
src/lib/implementations/VLCommandHandler.cpp
src/lib/implementations/VLCommandHandler.h

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
index 8b26741fda621e0b8864a40796d8344780a4779e..699ef40330be4618302679635a333614281dc63b 100644 (file)
@@ -44,6 +44,7 @@ namespace CEC
     bool InitHandler(void);
 
     int HandleDeviceVendorCommandWithId(const cec_command &command);
+    int HandleStandby(const cec_command &command);
     bool TransmitActiveSource(const cec_logical_address iInitiator, uint16_t iPhysicalAddress);
     bool TransmitPendingActiveSourceCommands(void);