cec: replace the handler directly after getting the vendor id of a device when regist...
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 26 Jun 2012 23:43:58 +0000 (01:43 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 26 Jun 2012 23:44:03 +0000 (01:44 +0200)
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())