repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: couple of cleanups. don't refresh the vendorid when not needed. refresh the...
[deb_libcec.git]
/
src
/
lib
/
CECProcessor.cpp
diff --git
a/src/lib/CECProcessor.cpp
b/src/lib/CECProcessor.cpp
index 81f501bf752c0183e906d31fd59ed6adb7818575..af45f9a653b04843f8f8c284b8e782527a186f49 100644
(file)
--- a/
src/lib/CECProcessor.cpp
+++ b/
src/lib/CECProcessor.cpp
@@
-952,14
+952,14
@@
bool CCECProcessor::SetAckMask(uint16_t iMask)
return bReturn;
}
return bReturn;
}
-bool CCECProcessor::
Send
Keypress(cec_logical_address iDestination, cec_user_control_code key)
+bool CCECProcessor::
Transmit
Keypress(cec_logical_address iDestination, cec_user_control_code key)
{
{
- return m_busDevices[iDestination]->
Send
Keypress(key);
+ return m_busDevices[iDestination]->
Transmit
Keypress(key);
}
}
-bool CCECProcessor::
Send
KeyRelease(cec_logical_address iDestination)
+bool CCECProcessor::
Transmit
KeyRelease(cec_logical_address iDestination)
{
{
- return m_busDevices[iDestination]->
Send
KeyRelease();
+ return m_busDevices[iDestination]->
Transmit
KeyRelease();
}
const char *CCECProcessor::ToString(const cec_menu_state state)
}
const char *CCECProcessor::ToString(const cec_menu_state state)
@@
-1297,8
+1297,15
@@
void *CCECBusScan::Process(void)
if (device && device->GetStatus(true) == CEC_DEVICE_STATUS_PRESENT)
{
if (!IsStopped())
if (device && device->GetStatus(true) == CEC_DEVICE_STATUS_PRESENT)
{
if (!IsStopped())
+ {
device->GetVendorId();
device->GetVendorId();
- Sleep(5);
+ Sleep(5);
+ }
+ if (!IsStopped())
+ {
+ device->GetPowerStatus(true);
+ Sleep(5);
+ }
}
}
}
}
}
}