cec: let CCECProcessor replace the command handlers
[deb_libcec.git] / src / lib / CECProcessor.cpp
index 63205f460f416e31649ed94327721a67ff7225e5..dc094ac4f9c8079ff11c40c85ca49dd1840a1a32 100644 (file)
@@ -268,6 +268,12 @@ bool CCECProcessor::FindLogicalAddresses(void)
   return bReturn;
 }
 
+void CCECProcessor::ReplaceHandlers(void)
+{
+  for (uint8_t iPtr = 0; iPtr <= CECDEVICE_PLAYBACKDEVICE3; iPtr++)
+    m_busDevices[iPtr]->ReplaceHandler(true);
+}
+
 void *CCECProcessor::Process(void)
 {
   bool                  bParseFrame(false);
@@ -283,6 +289,8 @@ void *CCECProcessor::Process(void)
 
   while (!IsStopped())
   {
+    ReplaceHandlers();
+
     command.Clear();
     msg.clear();