send our vendor id when the tv sends it's vendor id
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 12 Dec 2013 01:55:09 +0000 (02:55 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 12 Dec 2013 01:55:09 +0000 (02:55 +0100)
src/lib/implementations/CECCommandHandler.cpp

index ee602f1e6dfa90ecc7242f003fdbba374aeda5a4..29d1ffbcc7444b9725555de8f7f76d7d1b28fa58 100644 (file)
@@ -257,6 +257,14 @@ int CCECCommandHandler::HandleDeviceVendorCommandWithId(const cec_command & UNUS
 int CCECCommandHandler::HandleDeviceVendorId(const cec_command &command)
 {
   SetVendorId(command);
+
+  if (command.initiator == CECDEVICE_TV)
+  {
+    CCECBusDevice* primary = m_processor->GetPrimaryDevice();
+    if (primary)
+      primary->TransmitVendorID(CECDEVICE_BROADCAST, false, false);
+  }
+
   return COMMAND_HANDLED;
 }