mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
multiqueue: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
fa55d8302b
commit
78a941e873
1 changed files with 3 additions and 3 deletions
|
@ -2124,7 +2124,7 @@ gst_multi_queue_item_destroy (GstMultiQueueItem * item)
|
|||
{
|
||||
if (!item->is_query && item->object)
|
||||
gst_mini_object_unref (item->object);
|
||||
g_slice_free (GstMultiQueueItem, item);
|
||||
g_free (item);
|
||||
}
|
||||
|
||||
/* takes ownership of passed mini object! */
|
||||
|
@ -2133,7 +2133,7 @@ gst_multi_queue_buffer_item_new (GstMiniObject * object, guint32 curid)
|
|||
{
|
||||
GstMultiQueueItem *item;
|
||||
|
||||
item = g_slice_new (GstMultiQueueItem);
|
||||
item = g_new (GstMultiQueueItem, 1);
|
||||
item->object = object;
|
||||
item->destroy = (GDestroyNotify) gst_multi_queue_item_destroy;
|
||||
item->posid = curid;
|
||||
|
@ -2152,7 +2152,7 @@ gst_multi_queue_mo_item_new (GstMiniObject * object, guint32 curid)
|
|||
{
|
||||
GstMultiQueueItem *item;
|
||||
|
||||
item = g_slice_new (GstMultiQueueItem);
|
||||
item = g_new (GstMultiQueueItem, 1);
|
||||
item->object = object;
|
||||
item->destroy = (GDestroyNotify) gst_multi_queue_item_destroy;
|
||||
item->posid = curid;
|
||||
|
|
Loading…
Reference in a new issue