From: Lars Op den Kamp Date: Wed, 28 Dec 2011 02:03:25 +0000 (+0100) Subject: cec: put a call to ReplaceHandlers() back in CCECProcessor::Process(). only call... X-Git-Tag: upstream/2.2.0~1^2~43^2~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=591170fd731645adaa8b2f84ffc27d81d3eff4bc;p=deb_libcec.git cec: put a call to ReplaceHandlers() back in CCECProcessor::Process(). only call InitHandler() from ReplaceHandlers() when fully initialised --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 31f4399..6af0664 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -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();