From: Lars Op den Kamp Date: Wed, 5 Sep 2012 14:42:37 +0000 (+0200) Subject: panasonic: send out an active source message when the tv started up because it someti... X-Git-Tag: upstream/2.2.0~1^2~18^2^2~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5e9d49d8e378d77d0453a104c4703f4348513e8a;p=deb_libcec.git panasonic: send out an active source message when the tv started up because it sometimes doesn't request this --- diff --git a/src/lib/implementations/VLCommandHandler.cpp b/src/lib/implementations/VLCommandHandler.cpp index e74daac..072d711 100644 --- a/src/lib/implementations/VLCommandHandler.cpp +++ b/src/lib/implementations/VLCommandHandler.cpp @@ -128,6 +128,10 @@ int CVLCommandHandler::HandleDeviceVendorCommandWithId(const cec_command &comman // send capabilties SendVendorCommandCapabilities(m_processor->GetLogicalAddress(), command.initiator); + + // reactivate the source, so the tv switches channels + if (m_processor->IsActiveSource(m_processor->GetLogicalAddress())) + m_processor->GetDevice(m_processor->GetLogicalAddress())->TransmitActiveSource(false); } else if (command.parameters.At(4) == VL_POWERED_DOWN) {