MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / SendSetInactiveView

Method SendSetInactiveView

src/libcec/CECClient.cpp:653–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653bool CCECClient::SendSetInactiveView(void)
654{
655 CECDEVICEVEC devices;
656
657 // mark all devices that are controlled by us as inactive source
658 m_processor->GetDevices()->GetByLogicalAddresses(devices, m_configuration.logicalAddresses);
659 for (CECDEVICEVEC::iterator it = devices.begin(); it != devices.end(); it++)
660 {
661 if ((*it)->IsActiveSource())
662 {
663 (*it)->MarkAsInactiveSource();
664 return (*it)->TransmitInactiveSource();
665 }
666 }
667
668 return true;
669}
670
671bool CCECClient::SendSetOSDString(const cec_logical_address iLogicalAddress, const cec_display_control duration, const char *strMessage)
672{

Callers 1

SetInactiveViewMethod · 0.80

Calls 5

GetByLogicalAddressesMethod · 0.80
GetDevicesMethod · 0.80
MarkAsInactiveSourceMethod · 0.80
IsActiveSourceMethod · 0.45

Tested by

no test coverage detected