From: Lars Op den Kamp Date: Mon, 19 Mar 2012 15:30:12 +0000 (+0100) Subject: cec: ensure that the vendor ID is sent before trying to activate any SL device. bugzi... X-Git-Tag: upstream/2.2.0~1^2~31^2~63 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=8b5e50ecc41304c3d011c847bbf00829247d28f2 cec: ensure that the vendor ID is sent before trying to activate any SL device. bugzid: 574 --- diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index 692a5fd..9d938c2 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -411,6 +411,10 @@ bool CSLCommandHandler::PowerOn(const cec_logical_address iInitiator, const cec_ { /* LG devices only allow themselves to be woken up by the TV with a vendor command */ cec_command command; + + if (!m_bSLEnabled) + TransmitVendorID(CECDEVICE_TV, CEC_VENDOR_LG); + cec_command::Format(command, CECDEVICE_TV, iDestination, CEC_OPCODE_VENDOR_COMMAND); command.PushBack(SL_COMMAND_POWER_ON); command.PushBack(0);