don't mark a device as inactive when receiving a routing change message, only when...
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 7 Mar 2013 10:35:17 +0000 (11:35 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 7 Mar 2013 10:35:17 +0000 (11:35 +0100)
src/lib/devices/CECBusDevice.cpp

index 9d172d88a7ccec657bd09af093d2e92d03c0e821..4d9c56a2f380d87ebcf774f410c903eda26d42ee 100644 (file)
@@ -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 */)