From: Lars Op den Kamp Date: Fri, 27 Apr 2012 22:57:36 +0000 (+0200) Subject: cec: check the correct value in the PA override X-Git-Tag: upstream/2.2.0~1^2~29^2^2~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=14b59e255bb7c4bd118f2635538fca6a89db558f;p=deb_libcec.git cec: check the correct value in the PA override --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 41780fa..b4f612b 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -1613,7 +1613,7 @@ bool CCECProcessor::SetConfiguration(const libcec_configuration *configuration) } bool bHdmiPortChanged(false); - if (!IsValidPhysicalAddress(m_configuration.iPhysicalAddress)) + if (!bPhysicalAutodetected && !IsValidPhysicalAddress(configuration->iPhysicalAddress)) { // base device bHdmiPortChanged = IsRunning() && m_configuration.baseDevice != configuration->baseDevice; @@ -1625,7 +1625,7 @@ bool CCECProcessor::SetConfiguration(const libcec_configuration *configuration) CLibCEC::AddLog(CEC_LOG_DEBUG, "%s - using HDMI port '%d'", __FUNCTION__, configuration->iHDMIPort); m_configuration.iHDMIPort = configuration->iHDMIPort; } - else if (IsValidPhysicalAddress(m_configuration.iPhysicalAddress)) + else { CLibCEC::AddLog(CEC_LOG_DEBUG, "%s - resetting HDMI port and base device to defaults", __FUNCTION__); m_configuration.baseDevice = CECDEVICE_UNKNOWN;