cec: poll for a vendor id when an active device is detected on a logical addres,...
[deb_libcec.git] / src / lib / CECProcessor.cpp
index eae4c3cfa7b3b2e92eeae6d3623feaed19c43b39..648ec205babcd70cf6faf3b9e34ff1fea00048c7 100644 (file)
@@ -58,7 +58,8 @@ CCECProcessor::~CCECProcessor(void)
   StopThread();
   m_communication = NULL;
   m_controller = NULL;
-  delete[] m_busDevices;
+  for (unsigned int iPtr = 0; iPtr < 16; iPtr++)
+    delete m_busDevices[iPtr];
 }
 
 bool CCECProcessor::Start(void)
@@ -113,6 +114,9 @@ void *CCECProcessor::Process(void)
 
     m_controller->CheckKeypressTimeout();
 
+    for (unsigned int iDevicePtr = 0; iDevicePtr < 16; iDevicePtr++)
+      m_busDevices[iDevicePtr]->PollVendorId();
+
     if (!IsStopped())
       Sleep(5);
   }