From 8bf59703a1c4b3d94e9603089d51bd518ba73c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 8 Jan 2023 16:59:42 +0000 Subject: [PATCH] libs: pbutils: drop use of GSlice Part-of: --- .../gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer.c b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer.c index 6e9394e694..aac693cc2a 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer.c @@ -644,7 +644,7 @@ uridecodebin_pad_added_cb (GstElement * uridecodebin, GstPad * pad, DISCO_UNLOCK (dc); return; } - ps = g_slice_new0 (PrivateStream); + ps = g_new0 (PrivateStream, 1); ps->dc = dc; ps->pad = pad; @@ -722,7 +722,7 @@ error: gst_object_unref (ps->queue); if (ps->sink) gst_object_unref (ps->sink); - g_slice_free (PrivateStream, ps); + g_free (ps); DISCO_UNLOCK (dc); return; } @@ -788,7 +788,7 @@ uridecodebin_pad_removed_cb (GstElement * uridecodebin, GstPad * pad, } g_free (ps->stream_id); - g_slice_free (PrivateStream, ps); + g_free (ps); GST_DEBUG ("Done handling pad"); }