cec: mark device status as present when a command was received from a device
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 25 Nov 2011 11:40:03 +0000 (12:40 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 25 Nov 2011 11:40:03 +0000 (12:40 +0100)
src/lib/devices/CECBusDevice.cpp

index 42aa02c6644b480c2c3e9b9f889423b1f42930fc..689ff870b8e1d8a73cdeda66e3d847d145f3d1f0 100644 (file)
@@ -83,6 +83,8 @@ bool CCECBusDevice::HandleCommand(const cec_command &command)
   CLockObject lock(&m_transmitMutex);
   m_iLastActive = GetTimeMs();
   m_handler->HandleCommand(command);
+  if (m_deviceStatus != CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC)
+    m_deviceStatus = CEC_DEVICE_STATUS_PRESENT;
   m_condition.Signal();
   return true;
 }