}
m_busDevices[address]->m_powerStatus = CEC_POWER_STATUS_STANDBY;
m_busDevices[address]->m_cecVersion = CEC_VERSION_1_3A;
+ m_busDevices[address]->m_deviceStatus = CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC;
m_logicalAddresses.Set(address);
CCECBusDevice *device = GetDeviceByPhysicalAddress(iStreamPath);
if (device)
{
- for (unsigned int iPtr = 0; iPtr < 16; iPtr++)
- m_busDevices[iPtr]->m_bActiveSource = false;
-
- device->m_bActiveSource = true;
- device->m_powerStatus = CEC_POWER_STATUS_ON;
-
+ device->SetActiveDevice();
bReturn = true;
}