From a14c6612501a38c47d776be279d1153d4d7ea7c1 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Wed, 14 Nov 2012 10:55:40 +0100 Subject: [PATCH] send an active source message when the route was set to the physical address that is handled by libCEC --- src/lib/devices/CECBusDevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index e9cc13b..de75db5 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -1139,7 +1139,9 @@ void CCECBusDevice::SetActiveRoute(uint16_t iRoute) for (CECDEVICEVEC::iterator it = devices.begin(); it != devices.end(); it++) { - if (!CCECTypeUtils::PhysicalAddressIsIncluded(iRoute, (*it)->GetCurrentPhysicalAddress())) + if ((*it)->GetCurrentPhysicalAddress() == iRoute && (*it)->IsHandledByLibCEC()) + (*it)->ActivateSource(); + else if (!CCECTypeUtils::PhysicalAddressIsIncluded(iRoute, (*it)->GetCurrentPhysicalAddress())) (*it)->MarkAsInactiveSource(); } } -- 2.34.1