cec: put a call to ReplaceHandlers() back in CCECProcessor::Process(). only call...
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 28 Dec 2011 02:03:25 +0000 (03:03 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 28 Dec 2011 02:03:25 +0000 (03:03 +0100)
src/lib/CECProcessor.cpp

index 31f439903c41ea61114dcf2bb78f3e33d64f181b..6af06649d708a87a3cfe2bfbf129c5fdb6cb4fd8 100644 (file)
@@ -272,7 +272,7 @@ bool CCECProcessor::FindLogicalAddresses(void)
 void CCECProcessor::ReplaceHandlers(void)
 {
   for (uint8_t iPtr = 0; iPtr <= CECDEVICE_PLAYBACKDEVICE3; iPtr++)
-    m_busDevices[iPtr]->ReplaceHandler(false);
+    m_busDevices[iPtr]->ReplaceHandler(m_bInitialised);
 }
 
 void *CCECProcessor::Process(void)
@@ -290,6 +290,7 @@ void *CCECProcessor::Process(void)
 
   while (!IsStopped())
   {
+    ReplaceHandlers();
     command.Clear();
     msg.clear();