probably ugly hack to help with some
authorMatus Kral <matuskral@me.com>
Mon, 26 May 2014 18:59:17 +0000 (20:59 +0200)
committerMatus Kral <matuskral@me.com>
Thu, 29 May 2014 01:16:24 +0000 (03:16 +0200)
newer Samsung TVs and activating source

src/lib/implementations/ANCommandHandler.cpp
src/lib/implementations/ANCommandHandler.h

index 7e0e9b9062eb977d4278c68613e98476f9acdc7a..93e8c92147df584f2cf771c46b9e6629082c6dc3 100644 (file)
@@ -116,3 +116,13 @@ int CANCommandHandler::HandleDeviceVendorCommandWithId(const cec_command &comman
   }
   return CEC_ABORT_REASON_INVALID_OPERAND;
 }
+
+int CANCommandHandler::HandleSetMenuLanguage(const cec_command &command)
+{
+  if (m_processor->CECInitialised() && command.initiator == CECDEVICE_TV && command.destination == CECDEVICE_BROADCAST)
+  {
+    m_processor->GetDevice(command.initiator)->SetPowerStatus(CEC_POWER_STATUS_ON);
+  }
+
+  return CCECCommandHandler::HandleSetMenuLanguage(command);
+}
index 595170ac887101088f5627b9db9f8c2a300bfba3..73d3caef9779df589c241f826d448a59073ba6fa 100644 (file)
@@ -47,6 +47,7 @@ namespace CEC
 
     int HandleVendorRemoteButtonDown(const cec_command &command);
     int HandleDeviceVendorCommandWithId(const cec_command &command);
+    int HandleSetMenuLanguage(const cec_command &command);
 
   protected:
     bool PowerOn(const cec_logical_address iInitiator, const cec_logical_address iDestination);