default double tap timeout wasn't set for panasonic
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 14 Nov 2012 09:46:12 +0000 (10:46 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 14 Nov 2012 09:46:12 +0000 (10:46 +0100)
src/lib/implementations/VLCommandHandler.cpp

index f57925b80fc87247f959d8fd50474e127dddc088..21dc42ef448ae5dbad2070c1a8a6c446f006ef92 100644 (file)
@@ -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);
       }