From: Lars Op den Kamp Date: Wed, 14 Nov 2012 09:46:12 +0000 (+0100) Subject: default double tap timeout wasn't set for panasonic X-Git-Tag: upstream/2.2.0~1^2~12^2~17 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0ab7432fa89f6ae8a0d787d0112ca739e5b61566;p=deb_libcec.git default double tap timeout wasn't set for panasonic --- diff --git a/src/lib/implementations/VLCommandHandler.cpp b/src/lib/implementations/VLCommandHandler.cpp index f57925b..21dc42e 100644 --- a/src/lib/implementations/VLCommandHandler.cpp +++ b/src/lib/implementations/VLCommandHandler.cpp @@ -76,6 +76,14 @@ bool CVLCommandHandler::InitHandler(void) { if (primary && m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress()) { + libcec_configuration config; + m_processor->GetPrimaryClient()->GetCurrentConfiguration(config); + if (config.iDoubleTapTimeoutMs == 0) + { + config.iDoubleTapTimeoutMs = CEC_DOUBLE_TAP_TIMEOUT_MS; + m_processor->GetPrimaryClient()->SetConfiguration(config); + } + primary->SetVendorId(CEC_VENDOR_PANASONIC); primary->ReplaceHandler(false); }