X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FANCommandHandler.cpp;h=e9674baafb22f84ca8f575d46e407884156cf8a4;hb=72689600b9622fd55a53d9a95b8af42823d00356;hp=f1e3dd5b1c2da7b7ec7fe50bb96e80ebeaf97cdd;hpb=95ba7a09eb9bb15df28f8310fdcc9433157e58cf;p=deb_libcec.git diff --git a/src/lib/implementations/ANCommandHandler.cpp b/src/lib/implementations/ANCommandHandler.cpp index f1e3dd5..e9674ba 100644 --- a/src/lib/implementations/ANCommandHandler.cpp +++ b/src/lib/implementations/ANCommandHandler.cpp @@ -44,7 +44,7 @@ CANCommandHandler::CANCommandHandler(CCECBusDevice *busDevice) : bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command) { - if (command.parameters.size > 0) + if (m_processor->IsStarted() && command.parameters.size > 0) { cec_keypress key; key.duration = CEC_BUTTON_TIMEOUT; @@ -75,7 +75,7 @@ bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command) bool CANCommandHandler::HandleCommand(const cec_command &command) { bool bHandled(false); - if (command.destination == m_busDevice->GetMyLogicalAddress()) + if (m_busDevice->MyLogicalAddressContains(command.destination)) { switch(command.opcode) {