From 700d9b00855bc3de5e08f6502e89b3b2807cc24d Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sun, 30 Oct 2011 02:03:34 +0200 Subject: [PATCH] cec: process buffered messages too --- src/lib/CECProcessor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 73cae64..18e0e61 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -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(); -- 2.34.1