cec: delay the 'active source' command for panasonic, until the vendor command that...
[deb_libcec.git] / src / lib / CECProcessor.h
index ce32fea53d516794c4224304d8836a3784ced31b..3bb56fd54ba8cb453ca382c523969b6ec82870e4 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);
@@ -196,6 +196,8 @@ namespace CEC
 
       virtual bool GetDeviceInformation(const char *strPort, libcec_configuration *config, uint32_t iTimeoutMs = 10000);
 
+      bool TransmitPendingActiveSourceCommands(void);
+
       CCECBusDevice *  m_busDevices[16];
 
   private: