cec: ignore other data while waiting for a response. only get the vendor id in the...
authorLars Op den Kamp <lars@opdenkamp.eu>
Sat, 3 Dec 2011 23:33:04 +0000 (00:33 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sun, 4 Dec 2011 02:28:23 +0000 (03:28 +0100)
src/lib/CECProcessor.cpp

index 23bf4c7459c9ed40964730b632304d0190ddcc2f..8fc71dc31a2502e88e457c576063fac780414abe 100644 (file)
@@ -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);