X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FVLCommandHandler.cpp;h=642b3839a456d6cef69d75bca0092d02a92a71e7;hb=19b2a82fb3292839ce9b66e916c0c3b51332b7b4;hp=aadf98823f69546952226ae06cf84f1e766f1108;hpb=3a48aeae8998b4803888588ee6b258576c9c6680;p=deb_libcec.git diff --git a/src/lib/implementations/VLCommandHandler.cpp b/src/lib/implementations/VLCommandHandler.cpp index aadf988..642b383 100644 --- a/src/lib/implementations/VLCommandHandler.cpp +++ b/src/lib/implementations/VLCommandHandler.cpp @@ -159,14 +159,8 @@ bool CVLCommandHandler::PowerUpEventReceived(void) return true; } - cec_logical_address sourceLA = m_busDevice->GetLogicalAddress(); - if (sourceLA == CECDEVICE_TV) - sourceLA = m_processor->GetPrimaryDevice()->GetLogicalAddress(); - - cec_power_status powerStatus = m_busDevice->GetPowerStatus(sourceLA); - CLockObject lock(m_mutex); - m_bPowerUpEventReceived = (powerStatus == CEC_POWER_STATUS_ON); + m_bPowerUpEventReceived = (m_busDevice->GetCurrentPowerStatus() == CEC_POWER_STATUS_ON); return m_bPowerUpEventReceived; }