From 1db788cb36e0549150ac61c34db3bdd190f33e93 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Wed, 11 Dec 2013 14:27:03 +0100 Subject: [PATCH] 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 --- src/lib/implementations/VLCommandHandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.34.1