From: Lars Op den Kamp Date: Tue, 26 Jun 2012 23:43:58 +0000 (+0200) Subject: cec: replace the handler directly after getting the vendor id of a device when regist... X-Git-Tag: upstream/2.2.0~1^2~22^2^2~2 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=09f9f6067356bfd710129c62226cc877243ee624 cec: replace the handler directly after getting the vendor id of a device when registering a client --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 4d4abba..28adee3 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -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())