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
This commit is contained in:
Edward Hervey 2014-05-12 17:15:17 +02:00
parent 3b84e02206
commit dddb837d0d

View file

@ -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;
}