cec: don't read without a timeout in CUSBCECAdapterCommunication::Process()
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 12 Apr 2012 08:06:56 +0000 (10:06 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 12 Apr 2012 08:06:56 +0000 (10:06 +0200)
src/lib/adapter/USBCECAdapterCommunication.cpp

index fc64c761c8f5352710c218313b1d8b2196f9d15a..e9d4d9333e399430a008b72ccf779bc3d3117f86 100644 (file)
@@ -229,7 +229,7 @@ void *CUSBCECAdapterCommunication::Process(void)
   {
     {
       CLockObject lock(m_mutex);
-      bCommandReceived = m_callback && Read(command, 0) && m_bInitialised;
+      bCommandReceived = m_callback && Read(command, 50) && m_bInitialised;
     }
 
     /* push the next command to the callback method if there is one */