repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: don't init the default handler before the physical address is known
[deb_libcec.git]
/
src
/
lib
/
CECProcessor.cpp
diff --git
a/src/lib/CECProcessor.cpp
b/src/lib/CECProcessor.cpp
index 8cc290cca4ca20c4270fe402892985b2916cddb2..2c0f876a989bb89bcf9678ab029b50e07dfd5689 100644
(file)
--- a/
src/lib/CECProcessor.cpp
+++ b/
src/lib/CECProcessor.cpp
@@
-157,7
+157,9
@@
bool CCECProcessor::Start(const char *strPort, uint16_t iBaudRate /* = 38400 */,
if (SetHDMIPort(m_iBaseDevice, m_iHDMIPort, true))
{
if (SetHDMIPort(m_iBaseDevice, m_iHDMIPort, true))
{
- SetMenuState(CEC_MENU_STATE_ACTIVATED);
+ /* init the default handler */
+ if (m_busDevices[CECDEVICE_TV]->GetHandler()->GetVendorId() == CEC_VENDOR_UNKNOWN)
+ m_busDevices[CECDEVICE_TV]->GetHandler()->InitHandler();
m_controller->AddLog(CEC_LOG_DEBUG, "processor thread started");
m_busScan = new CCECBusScan(this);
m_controller->AddLog(CEC_LOG_DEBUG, "processor thread started");
m_busScan = new CCECBusScan(this);
@@
-1004,12
+1006,12
@@
bool CCECProcessor::SetAckMask(uint16_t iMask)
return bReturn;
}
return bReturn;
}
-bool CCECProcessor::TransmitKeypress(cec_logical_address iDestination, cec_user_control_code key)
+bool CCECProcessor::TransmitKeypress(cec_logical_address iDestination, cec_user_control_code key
, bool bWait /* = true */
)
{
return m_busDevices[iDestination]->TransmitKeypress(key);
}
{
return m_busDevices[iDestination]->TransmitKeypress(key);
}
-bool CCECProcessor::TransmitKeyRelease(cec_logical_address iDestination)
+bool CCECProcessor::TransmitKeyRelease(cec_logical_address iDestination
, bool bWait /* = true */
)
{
return m_busDevices[iDestination]->TransmitKeyRelease();
}
{
return m_busDevices[iDestination]->TransmitKeyRelease();
}