[gst-cvs] gstreamer: multiqueue: Use the slice allocator for MultiQueueItems

Jan Schmidt thaytan at kemper.freedesktop.org
Thu Jun 11 06:11:42 PDT 2009


Module: gstreamer
Branch: master
Commit: 2e2695f5946b44a16d653968463efbeb709c6bbd
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=2e2695f5946b44a16d653968463efbeb709c6bbd

Author: Jan Schmidt <thaytan at noraisin.net>
Date:   Tue Jun  9 11:13:04 2009 +0100

multiqueue: Use the slice allocator for MultiQueueItems

---

 plugins/elements/gstmultiqueue.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c
index 30f9865..930d7ed 100644
--- 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;





More information about the Gstreamer-commits mailing list