cec: process buffered messages too
authorLars Op den Kamp <lars@opdenkamp.eu>
Sun, 30 Oct 2011 00:03:34 +0000 (02:03 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sun, 30 Oct 2011 00:03:34 +0000 (02:03 +0200)
src/lib/CECProcessor.cpp

index 73cae64b04ca0ba139b4b89a5ec40711a0f663a3..18e0e6128e2ec1bcbc84e6a23802ad5ccefb9f56 100644 (file)
@@ -98,7 +98,8 @@ void *CCECProcessor::Process(void)
 
     {
       CLockObject lock(&m_mutex);
-      if (m_communication->IsOpen() && m_communication->Read(msg, 50))
+      if (m_frameBuffer.Pop(msg) ||
+          (m_communication->IsOpen() && m_communication->Read(msg, 50)))
         bParseFrame = ParseMessage(msg);
 
       bParseFrame &= !IsStopped();