From 96cd9b59674e7111180afe14f175c67eff787338 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Thu, 7 Mar 2013 11:35:17 +0100 Subject: [PATCH] don't mark a device as inactive when receiving a routing change message, only when another device was made acive. fixes the issue that rc passthrough doesn't work when a tv sends a quick routing change to another port before requesting the active source when coming out of standby --- src/lib/devices/CECBusDevice.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 9d172d8..4d9c56a 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -1143,17 +1143,6 @@ void CCECBusDevice::SetActiveRoute(uint16_t iRoute) else newRoute->MarkAsActiveSource(); } - else - { - // get the current active source and it's physical address - CCECBusDevice *device = m_processor->GetDevices()->GetActiveSource(); - uint16_t iPhysicalAddress(device ? device->GetCurrentPhysicalAddress() : CEC_INVALID_PHYSICAL_ADDRESS); - - // check whether the route below the device changed - if (CLibCEC::IsValidPhysicalAddress(iPhysicalAddress) && - !CCECTypeUtils::PhysicalAddressIsIncluded(iPhysicalAddress, iRoute)) - device->MarkAsInactiveSource(); - } } void CCECBusDevice::SetStreamPath(uint16_t iNewAddress, uint16_t iOldAddress /* = CEC_INVALID_PHYSICAL_ADDRESS */) -- 2.34.1