mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
gst: pool: Remove last g_slice remnants
It has long been deprecated and just makes the code harder to read.
This commit is contained in:
parent
d991be6a26
commit
95497f8777
1 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ pool_data_destroy (gpointer user_data)
|
||||||
GstPipeWirePoolData *data = user_data;
|
GstPipeWirePoolData *data = user_data;
|
||||||
|
|
||||||
gst_object_unref (data->pool);
|
gst_object_unref (data->pool);
|
||||||
g_slice_free (GstPipeWirePoolData, data);
|
g_free (data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gst_pipewire_pool_wrap_buffer (GstPipeWirePool *pool, struct pw_buffer *b)
|
void gst_pipewire_pool_wrap_buffer (GstPipeWirePool *pool, struct pw_buffer *b)
|
||||||
|
|
@ -73,7 +73,7 @@ void gst_pipewire_pool_wrap_buffer (GstPipeWirePool *pool, struct pw_buffer *b)
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (pool, "wrap buffer, datas:%d", b->buffer->n_datas);
|
GST_DEBUG_OBJECT (pool, "wrap buffer, datas:%d", b->buffer->n_datas);
|
||||||
|
|
||||||
data = g_slice_new (GstPipeWirePoolData);
|
data = g_new0 (GstPipeWirePoolData, 1);
|
||||||
|
|
||||||
buf = gst_buffer_new ();
|
buf = gst_buffer_new ();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue