don't mark as inactive source on routing changes
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 3 Dec 2012 21:23:34 +0000 (22:23 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 3 Dec 2012 21:23:34 +0000 (22:23 +0100)
src/lib/devices/CECBusDevice.cpp

index 7733cfbe91130923736b35e4a3bc31f1c6e8c727..3192bfcff677abede1a03dc93e684d369ae641f7 100644 (file)
@@ -1133,21 +1133,7 @@ void CCECBusDevice::SetActiveRoute(uint16_t iRoute)
 
   CCECBusDevice* newRoute = m_processor->GetDeviceByPhysicalAddress(iRoute, true);
   if (newRoute && newRoute->IsHandledByLibCEC())
-  {
     newRoute->ActivateSource();
-    return;
-  }
-
-  CECDEVICEVEC devices;
-  m_processor->GetDevices()->GetChildrenOf(devices, this);
-
-  for (CECDEVICEVEC::iterator it = devices.begin(); it != devices.end(); it++)
-  {
-    if ((*it)->GetCurrentPhysicalAddress() == iRoute && (*it)->IsHandledByLibCEC())
-      (*it)->ActivateSource();
-    else if (!CCECTypeUtils::PhysicalAddressIsIncluded(iRoute, (*it)->GetCurrentPhysicalAddress()))
-      (*it)->MarkAsInactiveSource();
-  }
 }
 
 void CCECBusDevice::SetStreamPath(uint16_t iNewAddress, uint16_t iOldAddress /* = CEC_INVALID_PHYSICAL_ADDRESS */)