X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fimplementations%2FANCommandHandler.cpp;h=a313819ca581cc79c1baef56da150ac57126a2b6;hb=f26ea36763c4e7cca87a128e87326670699700da;hp=f1e3dd5b1c2da7b7ec7fe50bb96e80ebeaf97cdd;hpb=95ba7a09eb9bb15df28f8310fdcc9433157e58cf;p=deb_libcec.git diff --git a/src/lib/implementations/ANCommandHandler.cpp b/src/lib/implementations/ANCommandHandler.cpp index f1e3dd5..a313819 100644 --- a/src/lib/implementations/ANCommandHandler.cpp +++ b/src/lib/implementations/ANCommandHandler.cpp @@ -40,11 +40,12 @@ using namespace CEC; CANCommandHandler::CANCommandHandler(CCECBusDevice *busDevice) : CCECCommandHandler(busDevice) { + m_vendorId = CEC_VENDOR_SAMSUNG; } 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 +76,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) {