From: Lars Op den Kamp Date: Wed, 14 Nov 2012 09:27:01 +0000 (+0100) Subject: don't update the power status when the stream path is reset X-Git-Tag: upstream/2.2.0~1^2~12^2~19 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=61a88303ddc62d5ccfd6be4fa21f4e7ec3783184;p=deb_libcec.git don't update the power status when the stream path is reset --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 3e44752..e9cc13b 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -1146,7 +1146,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); + if (iNewAddress != CEC_INVALID_PHYSICAL_ADDRESS) + SetPowerStatus(CEC_POWER_STATUS_ON); CLockObject lock(m_mutex); if (iNewAddress != m_iStreamPath)