cec: don't init the default handler before the physical address is known
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 20 Dec 2011 22:42:21 +0000 (23:42 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 20 Dec 2011 22:42:21 +0000 (23:42 +0100)
src/lib/devices/CECBusDevice.cpp

index 7d0bac4177bb13ce157b8a3bc8a1fc6cf7045c88..794829ae3ab51ec84e23ed83275ebbde0f5116bd 100644 (file)
@@ -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;