cec: replace the handler for the primary device directly after setting the type to LG
[deb_libcec.git] / src / lib / implementations / SLCommandHandler.cpp
index e3259219b90141c611afb43dd1a9b9318da74eda..290a4876c45b99acf2a396bee02b74710fac1d82 100644 (file)
@@ -59,7 +59,10 @@ CSLCommandHandler::CSLCommandHandler(CCECBusDevice *busDevice) :
 
   /* imitate LG devices */
   if (primary && m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress())
+  {
     primary->SetVendorId(CEC_VENDOR_LG);
+    primary->ReplaceHandler(false);
+  }
 
   /* LG TVs don't always reply to CEC version requests, so just set it to 1.3a */
   if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV)