bool CCECProcessor::OnCommandReceived(const cec_command &command)
{
- m_commandBuffer.Push(command);
+ ParseCommand(command);
return true;
}
void *CCECProcessor::Process(void)
{
- cec_command command;
CLibCEC::AddLog(CEC_LOG_DEBUG, "processor thread started");
while (!IsStopped() && m_communication->IsOpen())
if (IsInitialised())
{
ReplaceHandlers();
- if (m_commandBuffer.Pop(command))
- ParseCommand(command);
m_controller->CheckKeypressTimeout();
}
IAdapterCommunication * m_communication;
CLibCEC* m_controller;
bool m_bMonitor;
- PLATFORM::SyncedBuffer<cec_command> m_commandBuffer;
cec_keypress m_previousKey;
PLATFORM::CThread * m_busScan;
uint8_t m_iLineTimeout;