From: Lars Op den Kamp Date: Sun, 30 Oct 2011 00:03:34 +0000 (+0200) Subject: cec: process buffered messages too X-Git-Tag: upstream/2.2.0~1^2~182 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=700d9b00855bc3de5e08f6502e89b3b2807cc24d;p=deb_libcec.git cec: process buffered messages too --- 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();