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:
parent
3b84e02206
commit
dddb837d0d
@ -1191,7 +1191,7 @@ gst_mikey_message_replace_payload (GstMIKEYMessage * msg, guint idx,
|
|||||||
|
|
||||||
p = g_array_index (msg->payloads, GstMIKEYPayload *, idx);
|
p = g_array_index (msg->payloads, GstMIKEYPayload *, idx);
|
||||||
gst_mikey_payload_free (p);
|
gst_mikey_payload_free (p);
|
||||||
g_array_index (msg->payloads, GstMIKEYPayload *, idx) = p;
|
g_array_index (msg->payloads, GstMIKEYPayload *, idx) = payload;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user