cec: always wait for a signal in CCECProcessor::Transmit()
[deb_libcec.git] / src / lib / devices / CECBusDevice.cpp
index cbd332e088c44fce6bbf63779f0c4d47d4ef3845..0678ce393ef8dfe3a1825e8904940af6a9de6b12 100644 (file)
@@ -212,8 +212,8 @@ void CCECBusDevice::PollVendorId(void)
 
     cec_command command;
     cec_command::format(command, GetMyLogicalAddress(), GetLogicalAddress(), CEC_OPCODE_GIVE_DEVICE_VENDOR_ID);
-    command.ack_timeout = 0;
-    m_processor->Transmit(command);
+    if (m_processor->Transmit(command))
+      m_condition.Wait(&m_mutex, 1000);
   }
 }