cec: don't retry in CCECCommandHandler if the command has been marked as unsupported
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.cpp
index 37e3ddae785c366fcd4694538b90f152b7b3ea5f..faefaf967248db9cf51b2baee7143f0fa2a2d4b0 100644 (file)
@@ -1011,7 +1011,7 @@ bool CCECCommandHandler::Transmit(cec_command &command, bool bExpectResponse /*
 
   {
     uint8_t iTries(0), iMaxTries(!command.opcode_set ? 1 : m_iTransmitRetries + 1);
-    while (!bReturn && ++iTries <= iMaxTries)
+    while (!bReturn && ++iTries <= iMaxTries && !m_busDevice->IsUnsupportedFeature(command.opcode))
     {
       if ((bReturn = m_processor->Transmit(command)) == true)
       {