From: Lars Op den Kamp Date: Thu, 26 Apr 2012 11:10:56 +0000 (+0200) Subject: cec: don't set the power status to 'powered off' when marking the source managed... X-Git-Tag: upstream/2.2.0~1^2~29^2^2~26 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=60725dd58525d51a1588938b4b16573d05ad772b cec: don't set the power status to 'powered off' when marking the source managed by libcec as inactive, or the tv will might send a power control keycode when making it active again, potentially shutting down the system --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index d4a8bb0..c688162 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -533,9 +533,6 @@ void CCECBusDevice::SetInactiveSource(void) CLibCEC::AddLog(CEC_LOG_DEBUG, "marking %s (%X) as inactive source", GetLogicalAddressName(), m_iLogicalAddress); m_bActiveSource = false; } - - if (MyLogicalAddressContains(m_iLogicalAddress)) - SetPowerStatus(CEC_POWER_STATUS_STANDBY); } void CCECBusDevice::SetActiveSource(void)