cec: only send unhandled and selected commands to the command buffer
[deb_libcec.git] / src / lib / devices / CECBusDevice.cpp
index 7faa5fb6a10252da1b43e2f6284352b91f7e7673..0678ce393ef8dfe3a1825e8904940af6a9de6b12 100644 (file)
@@ -212,7 +212,8 @@ void CCECBusDevice::PollVendorId(void)
 
     cec_command command;
     cec_command::format(command, GetMyLogicalAddress(), GetLogicalAddress(), CEC_OPCODE_GIVE_DEVICE_VENDOR_ID);
-    m_processor->Transmit(command);
+    if (m_processor->Transmit(command))
+      m_condition.Wait(&m_mutex, 1000);
   }
 }