cec: forgot to save before committing
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 3 Jan 2012 15:08:18 +0000 (16:08 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 3 Jan 2012 15:08:18 +0000 (16:08 +0100)
src/lib/CECProcessor.cpp

index 6b401252f2bf289d958b4c69aecbcf4a13b3f7b9..2ec895a403fccdee1172b5cd09c9dfa2493077a5 100644 (file)
@@ -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);