Skip to content
Snippets Groups Projects
Commit 5c5b2dd2 authored by Steve Baker Baker's avatar Steve Baker Baker
Browse files

fixed operator precedence bug which caused 32 times too much memory to be...

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
parent 41381041
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment