From: Lars Op den Kamp Date: Thu, 15 Nov 2012 14:23:20 +0000 (+0100) Subject: don't mark a device as present after poll messages. it might be trying to allocate... X-Git-Tag: upstream/2.2.0~1^2~12^2~1 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=7db99d72cb826acf6ac761b7b27d3a639bb898c2 don't mark a device as present after poll messages. it might be trying to allocate a logical address --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 6703e87..f3c4294 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -186,7 +186,7 @@ bool CCECBusDevice::HandleCommand(const cec_command &command) bHandled = m_handler->HandleCommand(command); /* change status to present */ - if (bHandled && GetLogicalAddress() != CECDEVICE_BROADCAST) + if (bHandled && GetLogicalAddress() != CECDEVICE_BROADCAST && command.opcode_set == 1) { CLockObject lock(m_mutex); if (m_deviceStatus != CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC)