cec: replace the handler directly after getting the vendor id of a device when regist...
[deb_libcec.git] / src / lib / CECProcessor.cpp
index 4d4abba2ac93cca0fc6c2ee9bebb1cd531fc93ca..28adee3282e4a22b6631a267403b5df512ed544f 100644 (file)
@@ -637,7 +637,9 @@ bool CCECProcessor::RegisterClient(CCECClient *client)
   }
 
   // ensure that we know the vendor id of the TV
-  GetTV()->GetVendorId(CECDEVICE_UNREGISTERED);
+  CCECBusDevice *tv = GetTV();
+  tv->GetVendorId(CECDEVICE_UNREGISTERED);
+  tv->ReplaceHandler(false);
 
   // unregister the client first if it's already been marked as registered
   if (client->IsRegistered())