From: Lars Op den Kamp Date: Sun, 26 Feb 2012 22:38:59 +0000 (+0100) Subject: cec: fixed return value of CUSBCECAdapterCommunication::ParseMessage(). fixes message... X-Git-Tag: upstream/2.2.0~1^2~33^2~28 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b5117104dff139ffb5dbc6fe3ec995a4ed554f67;p=deb_libcec.git cec: fixed return value of CUSBCECAdapterCommunication::ParseMessage(). fixes messages not being parsed in certain occasions --- diff --git a/src/lib/adapter/USBCECAdapterCommunication.cpp b/src/lib/adapter/USBCECAdapterCommunication.cpp index c12ee54..c858d87 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/USBCECAdapterCommunication.cpp @@ -431,7 +431,6 @@ bool CUSBCECAdapterCommunication::ParseMessage(const CCECAdapterMessage &msg) m_currentframe.PushBack(msg[1]); m_currentframe.eom = msg.IsEOM(); } - bEom = msg.IsEOM(); } break; default: @@ -439,7 +438,7 @@ bool CUSBCECAdapterCommunication::ParseMessage(const CCECAdapterMessage &msg) } CLibCEC::AddLog(bIsError ? CEC_LOG_WARNING : CEC_LOG_DEBUG, msg.ToString()); - return bEom; + return bEom = msg.IsEOM();; } uint16_t CUSBCECAdapterCommunication::GetFirmwareVersion(void)