From a6e62a5da9587f8c6417cb8c6885f14ba5069967 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sat, 28 Apr 2012 02:02:48 +0200 Subject: [PATCH] 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 --- src/lib/devices/CECBusDevice.cpp | 6 ------ 1 file changed, 6 deletions(-) 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; } -- 2.34.1