From: Lars Op den Kamp Date: Wed, 14 Nov 2012 01:33:36 +0000 (+0100) Subject: mark a device as powered on when receiving a stream path or routing change X-Git-Tag: upstream/2.2.0~1^2~12^2~21 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=e75e09bfc2b9799a6a57f9c4ca8cff4984e8fc99 mark a device as powered on when receiving a stream path or routing change --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index fd2a348..b304cb9 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -1122,6 +1122,8 @@ bool CCECBusDevice::TransmitPendingActiveSourceCommands(void) void CCECBusDevice::SetActiveRoute(uint16_t iRoute) { + SetPowerStatus(CEC_POWER_STATUS_ON); + CCECDeviceMap* map = m_processor->GetDevices(); if (!map) return; @@ -1142,6 +1144,8 @@ void CCECBusDevice::SetActiveRoute(uint16_t iRoute) void CCECBusDevice::SetStreamPath(uint16_t iNewAddress, uint16_t iOldAddress /* = CEC_INVALID_PHYSICAL_ADDRESS */) { + SetPowerStatus(CEC_POWER_STATUS_ON); + CLockObject lock(m_mutex); if (iNewAddress != m_iStreamPath) {