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

Method InitHandler

src/libcec/implementations/PHCommandHandler.cpp:98–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98bool CPHCommandHandler::InitHandler(void)
99{
100 CCECBusDevice *primary = m_processor->GetPrimaryDevice();
101 if (primary && primary->GetLogicalAddress() != CECDEVICE_UNREGISTERED)
102 {
103 //XXX hack to use this handler for the primary device
104 if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV &&
105 primary && m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress())
106 {
107 primary->SetVendorId(CEC_VENDOR_PHILIPS);
108 primary->ReplaceHandler(false);
109 }
110 }
111
112 return CCECCommandHandler::InitHandler();
113}
114
115bool CPHCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = false */)
116{

Callers

nothing calls this directly

Calls 4

ReplaceHandlerMethod · 0.80
GetPrimaryDeviceMethod · 0.45
GetLogicalAddressMethod · 0.45
SetVendorIdMethod · 0.45

Tested by

no test coverage detected