From: Lars Op den Kamp Date: Mon, 14 May 2012 12:45:17 +0000 (+0200) Subject: cec: always persist a changed configuration when possible X-Git-Tag: upstream/2.2.0~1^2~28^2~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ee0c6edaf530a3cefbc25a6bcb40306dae8eabbf;p=deb_libcec.git cec: always persist a changed configuration when possible --- diff --git a/src/lib/CECClient.cpp b/src/lib/CECClient.cpp index 4ac7243..013a765 100644 --- a/src/lib/CECClient.cpp +++ b/src/lib/CECClient.cpp @@ -234,8 +234,7 @@ bool CCECClient::SetPhysicalAddress(const uint16_t iPhysicalAddress) } // persist the new configuration - if (m_processor->CECInitialised()) - m_processor->PersistConfiguration(m_configuration); + m_processor->PersistConfiguration(m_configuration); // set the physical address for each device SetDevicePhysicalAddress(iPhysicalAddress); @@ -818,8 +817,7 @@ bool CCECClient::SetConfiguration(const libcec_configuration &configuration) SetPhysicalAddress(configuration); } - if (bIsRunning) - m_processor->PersistConfiguration(m_configuration); + m_processor->PersistConfiguration(m_configuration); if (!primary) primary = GetPrimaryDevice();