From: Lars Op den Kamp Date: Thu, 12 Dec 2013 01:55:09 +0000 (+0100) Subject: send our vendor id when the tv sends it's vendor id X-Git-Tag: upstream/2.2.0~1^2~3^2~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4c52ccd1994c149f2cfadb1cd1e4765c0e8469a8;p=deb_libcec.git send our vendor id when the tv sends it's vendor id --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index ee602f1..29d1ffb 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -257,6 +257,14 @@ int CCECCommandHandler::HandleDeviceVendorCommandWithId(const cec_command & UNUS int CCECCommandHandler::HandleDeviceVendorId(const cec_command &command) { SetVendorId(command); + + if (command.initiator == CECDEVICE_TV) + { + CCECBusDevice* primary = m_processor->GetPrimaryDevice(); + if (primary) + primary->TransmitVendorID(CECDEVICE_BROADCAST, false, false); + } + return COMMAND_HANDLED; }