ConvertConfiguration(context, config, libCecConfig);
m_libCec = (ICECAdapter *) CECInitialise(&libCecConfig);
- config->Update(libCecConfig);
-
delete context;
return m_libCec != NULL;
if (m_configuration.tvVendor != CEC_VENDOR_UNKNOWN)
m_busDevices[CECDEVICE_TV]->ReplaceHandler(false);
-
- GetCurrentConfiguration(configuration);
}
CCECProcessor::CCECProcessor(CLibCEC *controller, const char *strDeviceName, const cec_device_type_list &types, uint16_t iPhysicalAddress) :
bool CLibCEC::GetCurrentConfiguration(libcec_configuration *configuration)
{
- return m_cec->GetCurrentConfiguration(configuration);
+ return m_cec->IsInitialised() && m_cec->GetCurrentConfiguration(configuration);
}
bool CLibCEC::SetConfiguration(const libcec_configuration *configuration)