cec: moved some logic to the cec_packet struct. fix package output
[deb_libcec.git] / src / lib / LibCEC.cpp
index 9498bc9995810d4f1e7c31c22e0dab7e2e2e1e6d..6b53f049563ff74397089944f9fcf84f307bb773 100644 (file)
@@ -213,7 +213,7 @@ void CLibCEC::AddCommand(cec_logical_address source, cec_logical_address destina
   command.destination  = destination;
   command.opcode       = opcode;
   if (parameters)
-    command.parameters = *parameters;
+    command.parameters = parameters->packet;
   if (m_commandBuffer.Push(command))
   {
     CStdString strDebug;