X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fdevices%2FCECBusDevice.cpp;h=0678ce393ef8dfe3a1825e8904940af6a9de6b12;hb=c02980af7d1e94a8f1de4df4572a551bb796bd5f;hp=7faa5fb6a10252da1b43e2f6284352b91f7e7673;hpb=1f0e9e0fb3ddfaf84650867e55e645cda7868e06;p=deb_libcec.git diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 7faa5fb..0678ce3 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -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); } }