mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
fixed operator precedence bug which caused 32 times too much memory to be allocated for each GstBuffer struct
Original commit message from CVS: fixed operator precedence bug which caused 32 times too much memory to be allocated for each GstBuffer struct
This commit is contained in:
parent
41381041f7
commit
5c5b2dd244
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ _gst_buffer_initialize (void)
|
|||
int buffersize = sizeof(GstBuffer);
|
||||
|
||||
// round up to the nearest 32 bytes for cache-line and other efficiencies
|
||||
buffersize = ((buffersize-1 / 32) + 1) * 32;
|
||||
buffersize = (((buffersize-1) / 32) + 1) * 32;
|
||||
|
||||
_gst_buffer_chunk = g_mem_chunk_new ("GstBuffer", buffersize,
|
||||
buffersize * 32, G_ALLOC_AND_FREE);
|
||||
|
|
Loading…
Reference in a new issue