From 261288360ea57d755b2a76ebec04e4f53dd14c1c Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sun, 4 Dec 2011 00:33:04 +0100 Subject: [PATCH] cec: ignore other data while waiting for a response. only get the vendor id in the background scan thread --- src/lib/CECProcessor.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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); -- 2.34.1