Commit dddb837d authored by Edward Hervey's avatar Edward Hervey 🤘

mikey: Actually replace payload ...

This function is intented to replace the payload, let's actually do that
instead of putting back the same (freed) payload

CID #1212175
parent 3b84e022
......@@ -1191,7 +1191,7 @@ gst_mikey_message_replace_payload (GstMIKEYMessage * msg, guint idx,
p = g_array_index (msg->payloads, GstMIKEYPayload *, idx);
gst_mikey_payload_free (p);
g_array_index (msg->payloads, GstMIKEYPayload *, idx) = p;
g_array_index (msg->payloads, GstMIKEYPayload *, idx) = payload;
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment