repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00762a7
)
cec: mark device status as present when a command was received from a device
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Fri, 25 Nov 2011 11:40:03 +0000
(12:40 +0100)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Fri, 25 Nov 2011 11:40:03 +0000
(12:40 +0100)
src/lib/devices/CECBusDevice.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/devices/CECBusDevice.cpp
b/src/lib/devices/CECBusDevice.cpp
index 42aa02c6644b480c2c3e9b9f889423b1f42930fc..689ff870b8e1d8a73cdeda66e3d847d145f3d1f0 100644
(file)
--- 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;
}