From: Lars Op den Kamp Date: Wed, 25 Apr 2012 12:50:38 +0000 (+0200) Subject: cec: don't retry MSGCODE_GET_BUILDDATE if it was rejected by the controller, because... X-Git-Tag: upstream/2.2.0~1^2~29^2^2~41 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ee0902523575b4aea09b5ad29e184ee061c1d647;p=deb_libcec.git cec: don't retry MSGCODE_GET_BUILDDATE if it was rejected by the controller, because the same value had a different meaning in older fw builds --- diff --git a/src/lib/adapter/USBCECAdapterCommunication.cpp b/src/lib/adapter/USBCECAdapterCommunication.cpp index f2b5cd6..d1e3565 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/USBCECAdapterCommunication.cpp @@ -380,7 +380,8 @@ CCECAdapterMessage *CUSBCECAdapterCommunication::SendCommand(cec_adapter_message } else { - if (!bIsRetry && output->Reply() == MSGCODE_COMMAND_REJECTED && msgCode != MSGCODE_SET_CONTROLLED) + if (!bIsRetry && output->Reply() == MSGCODE_COMMAND_REJECTED && msgCode != MSGCODE_SET_CONTROLLED && + msgCode != MSGCODE_GET_BUILDDATE /* same messagecode value had a different meaning in older fw builds */) { /* if the controller reported that the command was rejected, and we didn't send the command to set controlled mode, then the controller probably switched to auto mode. set controlled