X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=src%2Flib%2Fimplementations%2FANCommandHandler.cpp;h=7c2d05906d7b4a33550edb0eb55cbfcdd129268f;hb=6b567d1fa9db2009bbeaf6d355bdd0438a4eeca0;hp=2a4dc0d064dece6f48aecbe5986e0bbe143ef383;hpb=004b83822a351e1fb6e982a9183a12a430b0b769;p=deb_libcec.git diff --git a/src/lib/implementations/ANCommandHandler.cpp b/src/lib/implementations/ANCommandHandler.cpp index 2a4dc0d..7c2d059 100644 --- a/src/lib/implementations/ANCommandHandler.cpp +++ b/src/lib/implementations/ANCommandHandler.cpp @@ -50,7 +50,7 @@ CANCommandHandler::CANCommandHandler(CCECBusDevice *busDevice) : bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command) { - if (m_processor->IsRunning() && command.parameters.size > 0) + if (m_processor->CECInitialised() && command.parameters.size > 0) { CCECClient *client = m_processor->GetClient(command.destination); @@ -61,7 +61,7 @@ bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command) switch (command.parameters[0]) { case CEC_USER_CONTROL_CODE_AN_RETURN: - key.keycode = client && client->GetConfiguration()->clientVersion >= CEC_CLIENT_VERSION_1_5_0 ? + key.keycode = client && client->GetClientVersion() >= CEC_CLIENT_VERSION_1_5_0 ? CEC_USER_CONTROL_CODE_AN_RETURN : CEC_USER_CONTROL_CODE_EXIT; break;