cec: cleanups in ActivateSource() and CSLCommandHandler
[deb_libcec.git] / src / lib / devices / CECBusDevice.cpp
index b6ca75ca1835bf330ccb371e0aa74d4705376626..ce0c0869173207df92a639a2b1d06de57a503d3c 100644 (file)
@@ -864,6 +864,9 @@ bool CCECBusDevice::TransmitPowerState(cec_logical_address dest)
   cec_power_status state;
   {
     CLockObject lock(m_mutex);
+    if (!IsActiveSource())
+      SetPowerStatus(CEC_POWER_STATUS_STANDBY);
+
     CLibCEC::AddLog(CEC_LOG_NOTICE, "<< %s (%X) -> %s (%X): %s", GetLogicalAddressName(), m_iLogicalAddress, ToString(dest), dest, ToString(m_powerStatus));
     state = m_powerStatus;
   }