From: Lars Op den Kamp Date: Tue, 22 Jan 2013 00:59:10 +0000 (+0100) Subject: rpi: don't wait for a response (and fail) when opening a connection. issue #109 X-Git-Tag: upstream/2.2.0~1^2~6^2~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=644b3ecf926e3745d9119ace2acc971e94e2925a;p=deb_libcec.git rpi: don't wait for a response (and fail) when opening a connection. issue #109 --- diff --git a/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp b/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp index 8084b78..66c72c6 100644 --- a/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp +++ b/src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp @@ -275,13 +275,8 @@ bool CRPiCECAdapterCommunication::Open(uint32_t iTimeoutMs /* = CEC_DEFAULT_CONN // register the callback vc_cec_register_callback(((CECSERVICE_CALLBACK_T)rpi_cec_callback), (void*)this); - // release previous LA + // release previous LA, but don't wait for a response vc_cec_release_logical_address(); - if (!m_logicalAddressCondition.Wait(m_mutex, m_bLogicalAddressChanged, iTimeoutMs)) - { - LIB_CEC->AddLog(CEC_LOG_ERROR, "failed to release the previous LA"); - return false; - } // register LA "freeuse" if (RegisterLogicalAddress(CECDEVICE_FREEUSE))