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:
7e9105b
)
multiqueue: Use the slice allocator for MultiQueueItems
author
Jan Schmidt
<thaytan@noraisin.net>
Tue, 9 Jun 2009 10:13:04 +0000
(11:13 +0100)
committer
Jan Schmidt
<thaytan@noraisin.net>
Thu, 11 Jun 2009 09:34:28 +0000
(10:34 +0100)
plugins/elements/gstmultiqueue.c
patch
|
blob
|
history
diff --git
a/plugins/elements/gstmultiqueue.c
b/plugins/elements/gstmultiqueue.c
index 30f9865329f8fb9ebfc0c80dc9a054811fbce9f5..930d7ed26efc0ccd7b0363fd3cc6d59229ddbdba 100644
(file)
--- a/
plugins/elements/gstmultiqueue.c
+++ b/
plugins/elements/gstmultiqueue.c
@@
-795,7
+795,7
@@
gst_multi_queue_item_destroy (GstMultiQueueItem * item)
{
if (item->object)
gst_mini_object_unref (item->object);
- g_
free (
item);
+ g_
slice_free (GstMultiQueueItem,
item);
}
/* takes ownership of passed mini object! */
@@
-804,7
+804,7
@@
gst_multi_queue_item_new (GstMiniObject * object, guint32 curid)
{
GstMultiQueueItem *item;
- item = g_
new (GstMultiQueueItem, 1
);
+ item = g_
slice_new (GstMultiQueueItem
);
item->object = object;
item->destroy = (GDestroyNotify) gst_multi_queue_item_destroy;
item->posid = curid;