From: Lars Op den Kamp Date: Tue, 20 Dec 2011 22:42:21 +0000 (+0100) Subject: cec: don't init the default handler before the physical address is known X-Git-Tag: upstream/2.2.0~1^2~43^2~32 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8bc5358b7ca3f810728fef3108962bd435a0585a;p=deb_libcec.git cec: don't init the default handler before the physical address is known --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 7d0bac4..794829a 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -588,7 +588,7 @@ bool CCECBusDevice::SetVendorId(uint64_t iVendorId, bool bInitHandler /* = true } } - if (bVendorChanged && bInitHandler) + if (bVendorChanged && bInitHandler && m_handler->GetVendorId() != CEC_VENDOR_UNKNOWN) m_handler->InitHandler(); CStdString strLog;