mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
pulseaudio: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
9a235838c8
commit
1df462ec5b
1 changed files with 3 additions and 3 deletions
|
@ -371,7 +371,7 @@ gst_pulsering_destroy_context (GstPulseRingBuffer * pbuf)
|
|||
g_hash_table_remove (gst_pulse_shared_contexts, pbuf->context_name);
|
||||
|
||||
pa_context_unref (pctx->context);
|
||||
g_slice_free (GstPulseContext, pctx);
|
||||
g_free (pctx);
|
||||
}
|
||||
}
|
||||
g_free (pbuf->context_name);
|
||||
|
@ -528,7 +528,7 @@ gst_pulseringbuffer_open_device (GstAudioRingBuffer * buf)
|
|||
|
||||
pctx = g_hash_table_lookup (gst_pulse_shared_contexts, pbuf->context_name);
|
||||
if (pctx == NULL) {
|
||||
pctx = g_slice_new0 (GstPulseContext);
|
||||
pctx = g_new0 (GstPulseContext, 1);
|
||||
|
||||
/* get the mainloop api and create a context */
|
||||
GST_INFO_OBJECT (psink, "new context with name %s, pbuf=%p, pctx=%p",
|
||||
|
@ -608,7 +608,7 @@ create_failed:
|
|||
{
|
||||
GST_ELEMENT_ERROR (psink, RESOURCE, FAILED,
|
||||
("Failed to create context"), (NULL));
|
||||
g_slice_free (GstPulseContext, pctx);
|
||||
g_free (pctx);
|
||||
goto unlock_and_fail;
|
||||
}
|
||||
connect_failed:
|
||||
|
|
Loading…
Reference in a new issue