From: Lars Op den Kamp Date: Fri, 25 Nov 2011 11:40:03 +0000 (+0100) Subject: cec: mark device status as present when a command was received from a device X-Git-Tag: upstream/2.2.0~1^2~44^2~101 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a24c27d3704d6934f4ea68d093453e68246a9de0;p=deb_libcec.git cec: mark device status as present when a command was received from a device --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 42aa02c..689ff87 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -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; }