cec: missed 1 TODO in LibCecSharp.cpp. copy command parameters in GetNextCommand()
authorLars Op den Kamp <lars.opdenkamp@pulse-eight.com>
Mon, 14 Nov 2011 23:53:40 +0000 (00:53 +0100)
committerLars Op den Kamp <lars.opdenkamp@pulse-eight.com>
Mon, 14 Nov 2011 23:53:40 +0000 (00:53 +0100)
src/LibCecSharp/LibCecSharp.cpp

index ea37291258a228548ad1da99ba0ed677ec933481..0aec2ff111823d8145a0883ce37e53783c03b42e 100644 (file)
@@ -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();