From: Lars Op den Kamp Date: Thu, 12 Apr 2012 08:06:56 +0000 (+0200) Subject: cec: don't read without a timeout in CUSBCECAdapterCommunication::Process() X-Git-Tag: upstream/2.2.0~1^2~31^2~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=884f239fe81ebd0489bdee277de6b719c1495557;p=deb_libcec.git cec: don't read without a timeout in CUSBCECAdapterCommunication::Process() --- diff --git a/src/lib/adapter/USBCECAdapterCommunication.cpp b/src/lib/adapter/USBCECAdapterCommunication.cpp index fc64c76..e9d4d93 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/USBCECAdapterCommunication.cpp @@ -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 */