mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 00:28:21 +00:00
sdp: NULL terminate the time array
This commit is contained in:
parent
9ff9949cda
commit
8a5efb0014
1 changed files with 2 additions and 2 deletions
|
@ -352,11 +352,11 @@ gst_sdp_message_copy (const GstSDPMessage * msg, GstSDPMessage ** copy)
|
|||
if (time->repeat != NULL) {
|
||||
guint j;
|
||||
|
||||
repeat = g_malloc0 (time->repeat->len * sizeof (gchar *));
|
||||
|
||||
repeat = g_malloc0 ((time->repeat->len + 1) * sizeof (gchar *));
|
||||
for (j = 0; j < time->repeat->len; j++) {
|
||||
repeat[j] = g_array_index (time->repeat, char *, j);
|
||||
}
|
||||
repeat[j] = NULL;
|
||||
}
|
||||
|
||||
gst_sdp_message_add_time (cp, time->start, time->stop, repeat);
|
||||
|
|
Loading…
Reference in a new issue