repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed - log all device status changes
[deb_libcec.git]
/
src
/
lib
/
devices
/
CECBusDevice.cpp
diff --git
a/src/lib/devices/CECBusDevice.cpp
b/src/lib/devices/CECBusDevice.cpp
index e3d4cfdeea8876a2d2d36d87f1d85aadab57d717..688cb12d7532330c346cdaca8bdb74413a024fc5 100644
(file)
--- a/
src/lib/devices/CECBusDevice.cpp
+++ b/
src/lib/devices/CECBusDevice.cpp
@@
-174,11
+174,6
@@
bool CCECBusDevice::HandleCommand(const cec_command &command)
{
CLockObject lock(m_mutex);
m_iLastActive = GetTimeMs();
{
CLockObject lock(m_mutex);
m_iLastActive = GetTimeMs();
-
- /* don't call GetStatus() here, just read the value with the mutex locked */
- if (m_deviceStatus != CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC && command.opcode_set == 1)
- m_deviceStatus = CEC_DEVICE_STATUS_PRESENT;
-
MarkBusy();
}
MarkBusy();
}
@@
-841,10
+836,10
@@
bool CCECBusDevice::TransmitPoll(const cec_logical_address dest, bool bIsReply)
if (bReturn)
{
m_iLastActive = GetTimeMs();
if (bReturn)
{
m_iLastActive = GetTimeMs();
-
destDevice->m_deviceStatus = CEC_DEVICE_STATUS_PRESENT
;
+
SetDeviceStatus(CEC_DEVICE_STATUS_PRESENT)
;
}
else
}
else
-
destDevice->m_deviceStatus = CEC_DEVICE_STATUS_NOT_PRESENT
;
+
SetDeviceStatus(CEC_DEVICE_STATUS_NOT_PRESENT)
;
MarkReady();
return bReturn;
MarkReady();
return bReturn;