X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fimplementations%2FCECCommandHandler.cpp;h=0607acd4573f89a4874bd3ceaa92967aac6c1355;hb=b5b53c7d324f4444875befe6bf75b5c4dcac743c;hp=f321a70889e71052999cd2db93cdf9e1c08a5ec7;hpb=a3269a0a9e8973e29cfe073dd8e558aad173f984;p=deb_libcec.git diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index f321a70..0607acd 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -93,6 +93,8 @@ bool CCECCommandHandler::HandleCommand(const cec_command &command) bHandled = false; break; } + + m_busDevice->GetProcessor()->AddCommand(command); } else if (command.destination == CECDEVICE_BROADCAST) { @@ -122,6 +124,8 @@ bool CCECCommandHandler::HandleCommand(const cec_command &command) bHandled = false; break; } + + m_busDevice->GetProcessor()->AddCommand(command); } else { @@ -318,7 +322,9 @@ bool CCECCommandHandler::HandleUserControlRelease(const cec_command &command) void CCECCommandHandler::UnhandledCommand(const cec_command &command) { - m_busDevice->GetProcessor()->AddCommand(command); + CStdString strLog; + strLog.Format("unhandled command with opcode %02x from address %d", command.opcode, command.initiator); + m_busDevice->AddLog(CEC_LOG_DEBUG, strLog); } CCECBusDevice *CCECCommandHandler::GetDevice(cec_logical_address iLogicalAddress) const