cec: poll doesn't have an opcode. bugzid: 591
[deb_libcec.git] / src / lib / devices / CECBusDevice.cpp
index 845cb07d6426af2ab801fa7ba674a439c7628517..429d73fbd162f137870f8c5ed3b479c7fbe80504 100644 (file)
@@ -88,7 +88,7 @@ bool CCECBusDevice::HandleCommand(const cec_command &command)
     m_iLastActive = GetTimeMs();
 
     /* don't call GetStatus() here, just read the value with the mutex locked */
-    if (m_deviceStatus != CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC)
+    if (m_deviceStatus != CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC && command.opcode_set == 1)
       m_deviceStatus = CEC_DEVICE_STATUS_PRESENT;
 
     MarkBusy();