mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
parent
783195ccef
commit
464611acc4
1 changed files with 3 additions and 1 deletions
|
@ -1301,8 +1301,10 @@ gst_mikey_message_add_rand (GstMIKEYMessage * msg, guint8 len,
|
|||
g_return_val_if_fail (len != 0 && rand != NULL, FALSE);
|
||||
|
||||
p = gst_mikey_payload_new (GST_MIKEY_PT_RAND);
|
||||
if (!gst_mikey_payload_rand_set (p, len, rand))
|
||||
if (!gst_mikey_payload_rand_set (p, len, rand)) {
|
||||
gst_mikey_payload_free (p);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return gst_mikey_message_insert_payload (msg, -1, p);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue