fixed: panasonic doesn't request the active source status when powered up, but it...
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 11 Dec 2013 13:27:03 +0000 (14:27 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 11 Dec 2013 13:43:46 +0000 (14:43 +0100)
src/lib/implementations/VLCommandHandler.cpp

index 790e25b8aa2f6533d8ef508d16f5f3b126031ba4..0e74a06cd052b35b2af409571947e0c2e4da74bc 100644 (file)
@@ -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;
   }