mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
fixed rather heinous bug in gst_buffer_copy
Original commit message from CVS: fixed rather heinous bug in gst_buffer_copy
This commit is contained in:
parent
b845ee86f8
commit
28437bf3e2
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ gst_buffer_copy (GstBuffer *buffer)
|
|||
// allocate space for the copy
|
||||
newbuf->data = (guchar *)g_malloc (buffer->size);
|
||||
// copy the data straight across
|
||||
memcpy(newbuf,buffer->data,buffer->size);
|
||||
memcpy(newbuf->data,buffer->data,buffer->size);
|
||||
// the new maxsize is the same as the size, since we just malloc'd it
|
||||
newbuf->maxsize = newbuf->size;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue