cec: only replace handlers in the background thread in CCECProcessor. don't keep...
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 13 Feb 2012 01:27:20 +0000 (02:27 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 13 Feb 2012 01:27:20 +0000 (02:27 +0100)
src/lib/CECProcessor.cpp

index 230f2ab0388f4e937b97a27f10a33f92991ee16b..0ea5e8adb36c403cbb59e6c0a48bf1dc92245f7a 100644 (file)
@@ -211,7 +211,6 @@ bool CCECProcessor::Initialise(void)
 
   /* get the vendor id from the TV, so we are using the correct handler */
   m_busDevices[CECDEVICE_TV]->RequestVendorId();
-  ReplaceHandlers();
 
   if (m_iPhysicalAddress != 0)
   {
@@ -406,7 +405,6 @@ bool CCECProcessor::FindLogicalAddresses(void)
 
 void CCECProcessor::ReplaceHandlers(void)
 {
-  CLockObject lock(m_mutex);
   if (!IsInitialised())
     return;
   for (uint8_t iPtr = 0; iPtr <= CECDEVICE_PLAYBACKDEVICE3; iPtr++)