| 55 | } |
| 56 | |
| 57 | void* CImageViewOnCheck::Process(void) |
| 58 | { |
| 59 | CCECBusDevice* tv = m_handler->m_processor->GetDevice(CECDEVICE_TV); |
| 60 | cec_power_status status(CEC_POWER_STATUS_UNKNOWN); |
| 61 | while (status != CEC_POWER_STATUS_ON) |
| 62 | { |
| 63 | m_event.Wait(TV_ON_CHECK_TIME_MS); |
| 64 | if (!IsRunning()) |
| 65 | return NULL; |
| 66 | |
| 67 | status = tv->GetPowerStatus(m_handler->m_busDevice->GetLogicalAddress()); |
| 68 | |
| 69 | if (status != CEC_POWER_STATUS_ON && |
| 70 | status != CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON) |
| 71 | { |
| 72 | CLockObject lock(m_handler->m_mutex); |
| 73 | tv->OnImageViewOnSent(false); |
| 74 | m_handler->m_iActiveSourcePending = GetTimeMs(); |
| 75 | } |
| 76 | } |
| 77 | return NULL; |
| 78 | } |
| 79 | |
| 80 | CPHCommandHandler::CPHCommandHandler(CCECBusDevice *busDevice, |
| 81 | int32_t iTransmitTimeout /* = CEC_DEFAULT_TRANSMIT_TIMEOUT */, |
nothing calls this directly
no test coverage detected