bool CCECCommandHandler::HandleImageViewOn(const cec_command &command)
{
- m_processor->SetActiveSource(command.initiator);
+ m_processor->SetStreamPath(m_processor->m_busDevices[command.initiator]->GetPhysicalAddress(false));
return true;
}
uint16_t iNewAddress = ((uint16_t)command.parameters[0] << 8) | ((uint16_t)command.parameters[1]);
CCECBusDevice *newActiveDevice = GetDeviceByPhysicalAddress(iNewAddress);
if (newActiveDevice)
- m_processor->SetActiveSource(newActiveDevice->GetLogicalAddress());
+ m_processor->SetStreamPath(newActiveDevice->GetPhysicalAddress(false));
return ((CCECAudioSystem *) device)->TransmitSetSystemAudioMode(command.initiator);
}
else
bool CCECCommandHandler::HandleTextViewOn(const cec_command &command)
{
- m_processor->SetActiveSource(command.initiator);
+ m_processor->SetStreamPath(m_processor->m_busDevices[command.initiator]->GetPhysicalAddress(false));
return true;
}
bool CCECCommandHandler::Transmit(cec_command &command, bool bExpectResponse /* = true */)
{
command.transmit_timeout = m_iTransmitTimeout;
- if (command.retries == CEC_DEFAULT_TRANSMIT_RETRIES)
- command.retries = m_iTransmitRetries;
CLockObject writeLock(&m_processor->m_transmitMutex);
CLockObject receiveLock(&m_receiveMutex);