From: Lars Op den Kamp Date: Tue, 19 Jun 2012 18:54:35 +0000 (+0200) Subject: cec: fixed - send a feature abort as reply to vendor commands X-Git-Tag: upstream/2.2.0~1^2~22^2^2~40 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=36cc67e083b00ccd6c74be13f5dbf61601dc2795;p=deb_libcec.git cec: fixed - send a feature abort as reply to vendor commands --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index a240c90..2bab840 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -682,8 +682,10 @@ bool CCECCommandHandler::HandleUserControlRelease(const cec_command &command) return true; } -bool CCECCommandHandler::HandleVendorCommand(const cec_command & UNUSED(command)) +bool CCECCommandHandler::HandleVendorCommand(const cec_command &command) { + if (m_processor->CECInitialised() && m_processor->IsHandledByLibCEC(command.destination)) + m_processor->TransmitAbort(command.destination, command.initiator, command.opcode, CEC_ABORT_REASON_REFUSED); return true; }