mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-06 23:45:35 +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);
|
g_hash_table_remove (gst_pulse_shared_contexts, pbuf->context_name);
|
||||||
|
|
||||||
pa_context_unref (pctx->context);
|
pa_context_unref (pctx->context);
|
||||||
g_slice_free (GstPulseContext, pctx);
|
g_free (pctx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_free (pbuf->context_name);
|
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);
|
pctx = g_hash_table_lookup (gst_pulse_shared_contexts, pbuf->context_name);
|
||||||
if (pctx == NULL) {
|
if (pctx == NULL) {
|
||||||
pctx = g_slice_new0 (GstPulseContext);
|
pctx = g_new0 (GstPulseContext, 1);
|
||||||
|
|
||||||
/* get the mainloop api and create a context */
|
/* get the mainloop api and create a context */
|
||||||
GST_INFO_OBJECT (psink, "new context with name %s, pbuf=%p, pctx=%p",
|
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,
|
GST_ELEMENT_ERROR (psink, RESOURCE, FAILED,
|
||||||
("Failed to create context"), (NULL));
|
("Failed to create context"), (NULL));
|
||||||
g_slice_free (GstPulseContext, pctx);
|
g_free (pctx);
|
||||||
goto unlock_and_fail;
|
goto unlock_and_fail;
|
||||||
}
|
}
|
||||||
connect_failed:
|
connect_failed:
|
||||||
|
|
Loading…
Reference in a new issue