| 113 | } |
| 114 | |
| 115 | bool CPHCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = false */) |
| 116 | { |
| 117 | |
| 118 | CCECBusDevice* tv = m_processor->GetDevice(CECDEVICE_TV); |
| 119 | if (m_busDevice->IsActiveSource() && |
| 120 | m_busDevice->IsHandledByLibCEC() && |
| 121 | tv && tv->GetCurrentPowerStatus() != CEC_POWER_STATUS_ON && |
| 122 | !bTransmitDelayedCommandsOnly) |
| 123 | { |
| 124 | // tv sometimes ignores image view on. check the power status of the tv in 5 seconds, and retry when it failed to power up |
| 125 | if (m_imageViewOnCheck && !m_imageViewOnCheck->IsRunning()) |
| 126 | return m_imageViewOnCheck->CreateThread(false); |
| 127 | } |
| 128 | |
| 129 | return CCECCommandHandler::ActivateSource(bTransmitDelayedCommandsOnly); |
| 130 | } |
| 131 | |
| 132 | int CPHCommandHandler::HandleUserControlPressed(const cec_command& command) |
| 133 | { |
nothing calls this directly
no test coverage detected