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

Method IsLibCECActiveSource

src/libcec/CECClient.cpp:1591–1602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1589}
1590
1591bool CCECClient::IsLibCECActiveSource(void)
1592{
1593 bool bReturn(false);
1594 if (m_processor)
1595 {
1596 cec_logical_address activeSource = m_processor->GetActiveSource();
1597 CCECBusDevice *device = m_processor->GetDevice(activeSource);
1598 if (device)
1599 bReturn = device->IsHandledByLibCEC() && !device->GetHandler()->ActiveSourcePending();
1600 }
1601 return bReturn;
1602}
1603
1604void CCECClient::SourceActivated(const cec_logical_address logicalAddress)
1605{

Callers

nothing calls this directly

Calls 5

ActiveSourcePendingMethod · 0.80
GetHandlerMethod · 0.80
GetActiveSourceMethod · 0.45
GetDeviceMethod · 0.45
IsHandledByLibCECMethod · 0.45

Tested by

no test coverage detected