From: Lars Op den Kamp Date: Fri, 8 Mar 2013 12:31:57 +0000 (+0100) Subject: always poll a device when the status is unknown, and don't try to determine whether... X-Git-Tag: upstream/2.2.0~1^2~5^2~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b155d19ae0d1edfabda4991c747ea73b7a4c1471;p=deb_libcec.git always poll a device when the status is unknown, and don't try to determine whether it needs to be polled by checking the status of other devices --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 4d9c56a..e249a0b 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -781,7 +781,7 @@ cec_bus_device_status CCECBusDevice::GetStatus(bool bForcePoll /* = false */, bo if (bNeedsPoll) { bool bPollAcked(false); - if (bNeedsPoll && NeedsPoll()) + if (bNeedsPoll) bPollAcked = m_processor->PollDevice(m_iLogicalAddress); status = bPollAcked ? CEC_DEVICE_STATUS_PRESENT : CEC_DEVICE_STATUS_NOT_PRESENT;