From: Lars Op den Kamp Date: Sun, 4 Dec 2011 02:26:09 +0000 (+0100) Subject: cec: don't allow the deck status to be changed when it's set to the special LG status X-Git-Tag: upstream/2.2.0~1^2~44^2~49 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5606e90bb3c5a85ab8e29e639e8248581247699e;p=deb_libcec.git cec: don't allow the deck status to be changed when it's set to the special LG status --- diff --git a/src/lib/devices/CECPlaybackDevice.cpp b/src/lib/devices/CECPlaybackDevice.cpp index 200ffa4..112ebf7 100644 --- a/src/lib/devices/CECPlaybackDevice.cpp +++ b/src/lib/devices/CECPlaybackDevice.cpp @@ -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));