cec: don't init the default handler before the physical address is known
[deb_libcec.git] / 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;