added changelog for v1.5.1
[deb_libcec.git] / src / lib / CECProcessor.cpp
index 7cc01cadaabbf5e98d0b4637fe961b09bef0df2a..96e82ce626ff4f23f3e3287b0ead0cd26f2797df 100644 (file)
@@ -1603,6 +1603,11 @@ bool CCECProcessor::SetConfiguration(const libcec_configuration *configuration)
     else
       return SetHDMIPort(m_configuration.baseDevice, m_configuration.iHDMIPort);
   }
+  else if (m_configuration.bActivateSource == 1 && IsRunning() && !IsActiveSource(m_logicalAddresses.primary))
+  {
+    // activate the source if we're not already the active source
+    SetActiveSource(m_configuration.deviceTypes.types[0]);
+  }
 
   return true;
 }