From: Lars Op den Kamp Date: Sat, 28 Apr 2012 00:02:48 +0000 (+0200) Subject: cec: don't reset the power state to powered off when not the active source, or the... X-Git-Tag: upstream/2.2.0~1^2~29^2^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a6e62a5da9587f8c6417cb8c6885f14ba5069967;p=deb_libcec.git cec: don't reset the power state to powered off when not the active source, or the TV will can a power keypress, which will switch off the pc instead of making it the active source --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 141180d..7e63a67 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -975,12 +975,6 @@ bool CCECBusDevice::TransmitPowerState(cec_logical_address dest) cec_power_status state; { CLockObject lock(m_mutex); - if (!IsActiveSource()) - { - CLibCEC::AddLog(CEC_LOG_NOTICE, "power state requested of %s (%X), but we are not the active source. setting power state to standby", GetLogicalAddressName(), m_iLogicalAddress); - SetPowerStatus(CEC_POWER_STATUS_STANDBY); - } - CLibCEC::AddLog(CEC_LOG_NOTICE, "<< %s (%X) -> %s (%X): %s", GetLogicalAddressName(), m_iLogicalAddress, ToString(dest), dest, ToString(m_powerStatus)); state = m_powerStatus; }