cec: fix venodor id change. fix physical address change
[deb_libcec.git] / src / lib / implementations / SLCommandHandler.cpp
index 32ff88940fb10d0fbd54547979954fde50171ed7..05cbf51fbef05dd0b6b1e066f0caa2023291545e 100644 (file)
@@ -199,7 +199,8 @@ bool CSLCommandHandler::InitHandler(void)
   m_bSLEnabled = true;
 
   CCECBusDevice *primary = m_busDevice->GetProcessor()->m_busDevices[m_busDevice->GetProcessor()->GetLogicalAddresses().primary];
-  primary->SetVendorId(CEC_VENDOR_LG);
+  if (m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress())
+    primary->SetVendorId(CEC_VENDOR_LG, false);
 
   if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV)
   {