From: Lars Op den Kamp Date: Mon, 14 Nov 2011 23:53:40 +0000 (+0100) Subject: cec: missed 1 TODO in LibCecSharp.cpp. copy command parameters in GetNextCommand() X-Git-Tag: upstream/2.2.0~1^2~44^2~131 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0e1971485665b684b77f620dcd39c1b88a0300b3;p=deb_libcec.git cec: missed 1 TODO in LibCecSharp.cpp. copy command parameters in GetNextCommand() --- diff --git a/src/LibCecSharp/LibCecSharp.cpp b/src/LibCecSharp/LibCecSharp.cpp index ea37291..0aec2ff 100644 --- a/src/LibCecSharp/LibCecSharp.cpp +++ b/src/LibCecSharp/LibCecSharp.cpp @@ -411,8 +411,10 @@ public: cec_command command; if (m_libCec->GetNextCommand(&command)) { - // TODO parameters - return gcnew CecCommand((CecLogicalAddress)command.initiator, (CecLogicalAddress)command.destination, command.ack == 1 ? true : false, command.eom == 1 ? true : false, command.opcode, command.transmit_timeout); + CecCommand ^ retVal = gcnew CecCommand((CecLogicalAddress)command.initiator, (CecLogicalAddress)command.destination, command.ack == 1 ? true : false, command.eom == 1 ? true : false, command.opcode, command.transmit_timeout); + for (uint8_t iPtr = 0; iPtr < command.parameters.size; iPtr++) + retVal->Parameters->PushBack(command.parameters[iPtr]); + return retVal; } return gcnew CecCommand();