cec: set power status to on when the stream path changed to something else than 0
[deb_libcec.git] / src / lib / devices / CECBusDevice.cpp
index 3c371f4be990b9c415aa2ae4f7b94f8621bdb260..b5f5b580a6b099cd16ab2ad7f6f667897b6c6faa 100644 (file)
@@ -295,6 +295,9 @@ void CCECBusDevice::SetStreamPath(uint16_t iNewAddress, uint16_t iOldAddress /*
     AddLog(CEC_LOG_DEBUG, strLog.c_str());
 
     m_iStreamPath = iNewAddress;
+
+    if (iNewAddress > 0)
+      SetPowerStatus(CEC_POWER_STATUS_ON);
   }
 }