From: Lars Op den Kamp Date: Thu, 10 Nov 2011 17:30:00 +0000 (+0100) Subject: cec: set power status to on when the stream path changed to something else than 0 X-Git-Tag: upstream/2.2.0~1^2~78 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=962741408c8dd22ecca1bb1734ddfc8ed02bcfa6;p=deb_libcec.git cec: set power status to on when the stream path changed to something else than 0 --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 3c371f4..b5f5b58 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -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); } }