cec: refactor USB adapter communication. less locks, shorter locks, added documentati...
[deb_libcec.git] / src / lib / CECProcessor.h
index ce32fea53d516794c4224304d8836a3784ced31b..25b0c2aa10f75d627191807155d87bac85fd4847 100644 (file)
@@ -64,7 +64,7 @@ namespace CEC
         bReturn = m_inBuffer.Push(command);
 
       m_bHasData |= bReturn;
-      if (bReturn)
+      if (m_bHasData)
         m_condition.Signal();
 
       return bReturn;
@@ -109,7 +109,7 @@ namespace CEC
       virtual bool                  OnCommandReceived(const cec_command &command);
 
       virtual bool                  IsMonitoring(void) const { return m_bMonitor; }
-      virtual CCECBusDevice *       GetDeviceByPhysicalAddress(uint16_t iPhysicalAddress, bool bRefresh = false) const;
+      virtual CCECBusDevice *       GetDeviceByPhysicalAddress(uint16_t iPhysicalAddress, bool bRefresh = false, bool bSuppressPoll = false) const;
       virtual CCECBusDevice *       GetDeviceByType(cec_device_type type) const;
       virtual CCECBusDevice *       GetPrimaryDevice(void) const;
       virtual cec_version           GetDeviceCecVersion(cec_logical_address iAddress);