From: Lars Op den Kamp Date: Sat, 3 Dec 2011 23:33:04 +0000 (+0100) Subject: cec: ignore other data while waiting for a response. only get the vendor id in the... X-Git-Tag: upstream/2.2.0~1^2~44^2~58 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=261288360ea57d755b2a76ebec04e4f53dd14c1c;p=deb_libcec.git cec: ignore other data while waiting for a response. only get the vendor id in the background scan thread --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 23bf4c7..8fc71dc 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -772,8 +772,8 @@ bool CCECProcessor::WaitForTransmitSucceeded(CCECAdapterMessage *message) message->reply = MSGCODE_TRANSMIT_SUCCEEDED; break; default: - if (ParseMessage(msg)) - m_commandBuffer.Push(m_currentframe); + // ignore other data while waiting + break; } iNow = GetTimeMs(); @@ -1270,14 +1270,6 @@ void *CCECBusScan::Process(void) device = m_processor->m_busDevices[iPtr]; if (device && device->GetStatus() == CEC_DEVICE_STATUS_PRESENT) { - if (!IsStopped()) - device->GetPhysicalAddress(false); - Sleep(5); - - if (!IsStopped()) - device->GetCecVersion(); - Sleep(5); - if (!IsStopped()) device->GetVendorId(); Sleep(5);