cec: set power status to on when the stream path changed to something else than 0
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 10 Nov 2011 17:30:00 +0000 (18:30 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 10 Nov 2011 18:00:30 +0000 (19:00 +0100)
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);
   }
 }