From: Lars Op den Kamp Date: Tue, 3 Jan 2012 15:08:18 +0000 (+0100) Subject: cec: forgot to save before committing X-Git-Tag: upstream/2.2.0~1^2~42^2~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=89b3c9dfcbba8fa4fa9fbfc859a0f9e55f1d5964;p=deb_libcec.git cec: forgot to save before committing --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 6b40125..2ec895a 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -488,14 +488,12 @@ bool CCECProcessor::SetDeckInfo(cec_deck_info info, bool bSendUpdate /* = true * bool CCECProcessor::SetHDMIPort(cec_logical_address iBaseDevice, uint8_t iPort, bool bForce /* = false */) { bool bReturn(false); - { - CLockObject lock(&m_mutex); + CLockObject lock(&m_mutex); - m_iBaseDevice = iBaseDevice; - m_iHDMIPort = iPort; - if (!m_bStarted && !bForce) - return true; - } + m_iBaseDevice = iBaseDevice; + m_iHDMIPort = iPort; + if (!m_bStarted && !bForce) + return true; CStdString strLog; strLog.Format("setting HDMI port to %d on device %s (%d)", iPort, ToString(iBaseDevice), (int)iBaseDevice);