cec: fixed - send a feature abort as reply to vendor commands
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 19 Jun 2012 18:54:35 +0000 (20:54 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 19 Jun 2012 18:54:35 +0000 (20:54 +0200)
src/lib/implementations/CECCommandHandler.cpp

index a240c9086739cc343e3e25354c5750d7acaedbfd..2bab840623c473d1b66a6f5f102a99b59bf8d70c 100644 (file)
@@ -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;
 }