projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c92876
)
atomicqueue: make sure a min initial_size is used
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 16 Feb 2011 11:48:59 +0000
(12:48 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 16 Feb 2011 16:56:38 +0000
(17:56 +0100)
gst/gstatomicqueue.c
patch
|
blob
|
history
diff --git
a/gst/gstatomicqueue.c
b/gst/gstatomicqueue.c
index
3a3572a
..
b7fa67d
100644
(file)
--- a/
gst/gstatomicqueue.c
+++ b/
gst/gstatomicqueue.c
@@
-65,7
+65,7
@@
new_queue_mem (guint size, gint pos)
mem = g_new (GstAQueueMem, 1);
/* we keep the size as a mask for performance */
- mem->size = clp2 (
size
) - 1;
+ mem->size = clp2 (
MAX (size, 16)
) - 1;
mem->array = g_new0 (gpointer, mem->size);
mem->head = pos;
mem->tail = pos;