cec: don't allow the deck status to be changed when it's set to the special LG status
[deb_libcec.git] / src / lib / devices / CECPlaybackDevice.cpp
index 200ffa4d4bea177d9fb672b247b2bf7c6aadf0dc..112ebf778513c45cc3a44bf008ea36ebf8f3f2d4 100644 (file)
@@ -55,7 +55,7 @@ cec_deck_info CCECPlaybackDevice::GetDeckStatus(void)
 void CCECPlaybackDevice::SetDeckStatus(cec_deck_info deckStatus)
 {
   CLockObject lock(&m_writeMutex);
-  if (m_deckStatus != deckStatus)
+  if (m_deckStatus != deckStatus && m_deckStatus != CEC_DECK_INFO_OTHER_STATUS_LG)
   {
     CStdString strLog;
     strLog.Format(">> %s (%X): deck status changed from '%s' to '%s'", GetLogicalAddressName(), m_iLogicalAddress, ToString(m_deckStatus), ToString(deckStatus));