From: Lars Op den Kamp Date: Sun, 26 Feb 2012 23:50:25 +0000 (+0100) Subject: cec: also add commands to unsupported features when receiving CEC_ABORT_REASON_REFUSED X-Git-Tag: upstream/2.2.0~1^2~33^2~25 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=69a1a673f55d177a83f8c45f10c82787d6d763aa;p=deb_libcec.git cec: also add commands to unsupported features when receiving CEC_ABORT_REASON_REFUSED --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index d2fe2fd..a9b4c40 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -242,7 +242,9 @@ bool CCECCommandHandler::HandleDeviceVendorId(const cec_command &command) bool CCECCommandHandler::HandleFeatureAbort(const cec_command &command) { - if (command.parameters.size == 2 && command.parameters[1] == CEC_ABORT_REASON_UNRECOGNIZED_OPCODE) + if (command.parameters.size == 2 && + (command.parameters[1] == CEC_ABORT_REASON_UNRECOGNIZED_OPCODE || + command.parameters[1] == CEC_ABORT_REASON_REFUSED)) m_processor->m_busDevices[command.initiator]->SetUnsupportedFeature((cec_opcode)command.parameters[0]); return true; }