repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
send an active source message when the route was set to the physical address that...
[deb_libcec.git]
/
src
/
lib
/
devices
/
CECBusDevice.cpp
diff --git
a/src/lib/devices/CECBusDevice.cpp
b/src/lib/devices/CECBusDevice.cpp
index e9cc13b93f79974bbc34866687dfb1ac8352c8bc..de75db5760b7e3bff8f3c365cc08ecdc07c8b7cf 100644
(file)
--- 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++)
{
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();
}
}
(*it)->MarkAsInactiveSource();
}
}