From: Lars Op den Kamp Date: Wed, 20 Jun 2012 13:32:46 +0000 (+0200) Subject: cec: reply with abort reason 'invalid operand' to vendor commands that we don't under... X-Git-Tag: upstream/2.2.0~1^2~22^2^2~34 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=225790151ff64a7aa0ece45643d6265c545085e1;p=deb_libcec.git cec: reply with abort reason 'invalid operand' to vendor commands that we don't understand --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index aa2a0dc..c72cc99 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -248,7 +248,7 @@ int CCECCommandHandler::HandleDeviceCecVersion(const cec_command &command) int CCECCommandHandler::HandleDeviceVendorCommandWithId(const cec_command & UNUSED(command)) { - return CEC_ABORT_REASON_REFUSED; + return CEC_ABORT_REASON_INVALID_OPERAND; } int CCECCommandHandler::HandleDeviceVendorId(const cec_command &command) @@ -713,7 +713,7 @@ int CCECCommandHandler::HandleUserControlRelease(const cec_command &command) int CCECCommandHandler::HandleVendorCommand(const cec_command & UNUSED(command)) { - return CEC_ABORT_REASON_REFUSED; + return CEC_ABORT_REASON_INVALID_OPERAND; } void CCECCommandHandler::UnhandledCommand(const cec_command &command, const cec_abort_reason reason)