X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FANCommandHandler.cpp;h=a313819ca581cc79c1baef56da150ac57126a2b6;hb=f26ea36763c4e7cca87a128e87326670699700da;hp=3da959eb5939f61c2e1189cddac4abbe1d297bfc;hpb=f8513317a5f4bb2d9d0843193c3c98eca19f8e8a;p=deb_libcec.git diff --git a/src/lib/implementations/ANCommandHandler.cpp b/src/lib/implementations/ANCommandHandler.cpp index 3da959e..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;