return bReturn;
}
+void CCECProcessor::ReplaceHandlers(void)
+{
+ for (uint8_t iPtr = 0; iPtr <= CECDEVICE_PLAYBACKDEVICE3; iPtr++)
+ m_busDevices[iPtr]->ReplaceHandler(true);
+}
+
void *CCECProcessor::Process(void)
{
bool bParseFrame(false);
while (!IsStopped())
{
+ ReplaceHandlers();
+
command.Clear();
msg.clear();
CMutex m_transmitMutex;
private:
+ void ReplaceHandlers(void);
void ScanCECBus(void);
bool PhysicalAddressInUse(uint16_t iPhysicalAddress);
bool TryLogicalAddress(cec_logical_address address);
}
/* handle the command */
- ReplaceHandler(true);
bHandled = m_handler->HandleCommand(command);
/* change status to present */
bool CCECBusDevice::InitHandler(void)
{
CLockObject lock(&m_mutex);
- ReplaceHandler(false);
return m_handler->InitHandler();
}