From: Lars Op den Kamp Date: Wed, 11 Dec 2013 13:27:03 +0000 (+0100) Subject: fixed: panasonic doesn't request the active source status when powered up, but it... X-Git-Tag: upstream/2.2.0~1^2~3^2~20 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1db788cb36e0549150ac61c34db3bdd190f33e93;p=deb_libcec.git fixed: panasonic doesn't request the active source status when powered up, but it does send a vendor command. send an active source message when we're marked as active source after receiving this command. issue #192 --- diff --git a/src/lib/implementations/VLCommandHandler.cpp b/src/lib/implementations/VLCommandHandler.cpp index 790e25b..0e74a06 100644 --- a/src/lib/implementations/VLCommandHandler.cpp +++ b/src/lib/implementations/VLCommandHandler.cpp @@ -258,6 +258,10 @@ int CVLCommandHandler::HandleVendorCommand(const cec_command &command) // XXX i've seen 0x05 and 0x03 as third param. these probably indicate different types of TVs/capabilities // when we feature abort this, then the TV will try the same thing with a vendor command with id SendVendorCommandCapabilities(m_processor->GetLogicalAddress(), command.initiator); + + CCECBusDevice* dev = m_processor->GetDevice(command.destination); + if (dev && dev->IsActiveSource()) + dev->ActivateSource(500); return COMMAND_HANDLED; }