From: Lars Op den Kamp Date: Thu, 24 Nov 2011 22:29:49 +0000 (+0100) Subject: cec: devices can send vendor commands from other vendors, so don't assume the device... X-Git-Tag: upstream/2.2.0~1^2~44^2~111 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3e0675a6fe4697eaaa8eb49748736436e3ec6053;p=deb_libcec.git cec: devices can send vendor commands from other vendors, so don't assume the device is of a certain vendor when it sends commands with a vendor id --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index a23ba66..c273784 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -181,8 +181,6 @@ bool CCECCommandHandler::HandleDeviceCecVersion(const cec_command &command) bool CCECCommandHandler::HandleDeviceVendorCommandWithId(const cec_command &command) { - SetVendorId(command); - if (m_busDevice->MyLogicalAddressContains(command.destination)) m_busDevice->GetProcessor()->TransmitAbort(command.initiator, command.opcode, CEC_ABORT_REASON_REFUSED);