commit | ebb37b48d8bbd60969a97ae251663ae0be4fee23 | [log] [tgz] |
---|---|---|
author | Wim Taymans <wim.taymans@collabora.co.uk> | Wed Feb 16 12:48:59 2011 +0100 |
committer | Wim Taymans <wim.taymans@collabora.co.uk> | Wed Feb 16 17:56:38 2011 +0100 |
tree | 6c2941b04cd076d93a6321c86d75d30fa2cdd06a | |
parent | 4c9287687b5dc660f32e0e80c8cd00836e6bce10 [diff] |
atomicqueue: make sure a min initial_size is used
diff --git a/gst/gstatomicqueue.c b/gst/gstatomicqueue.c index 3a3572a..b7fa67d 100644 --- a/gst/gstatomicqueue.c +++ b/gst/gstatomicqueue.c
@@ -65,7 +65,7 @@ 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;