cec: fixed possible crash when trying to request a vendor id of a device when the...
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 11 Apr 2012 14:29:15 +0000 (16:29 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 11 Apr 2012 15:46:29 +0000 (17:46 +0200)
src/lib/devices/CECBusDevice.cpp

index ab1d710f9b4f0f7542dc633a036a1bd90883e9a0..5b9d421bd25c2dea260092887eb04c624d405658 100644 (file)
@@ -372,7 +372,7 @@ bool CCECBusDevice::RequestVendorId(void)
 {
   bool bReturn(false);
 
-  if (!MyLogicalAddressContains(m_iLogicalAddress))
+  if (!MyLogicalAddressContains(m_iLogicalAddress) && GetMyLogicalAddress() != CECDEVICE_UNKNOWN)
   {
     MarkBusy();
     CLibCEC::AddLog(CEC_LOG_NOTICE, "<< requesting vendor ID of '%s' (%X)", GetLogicalAddressName(), m_iLogicalAddress);