From 0feb2770e62d00397c2995461b10fa6280b5c152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 8 Jan 2023 15:59:55 +0000 Subject: [PATCH] encodebin: drop use of GSlice Part-of: --- subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c b/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c index 85a4913e14..b500dfda09 100644 --- a/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c +++ b/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c @@ -1469,7 +1469,7 @@ _create_stream_group (GstEncodeBaseBin * ebin, GstEncodingProfile * sprof, GST_PTR_FORMAT, format, sinkcaps); GST_DEBUG ("avoid_reencoding:%d", ebin->avoid_reencoding); - sgroup = g_slice_new0 (StreamGroup); + sgroup = g_new0 (StreamGroup, 1); sgroup->ebin = ebin; sgroup->profile = sprof; @@ -2464,7 +2464,7 @@ stream_group_free (GstEncodeBaseBin * ebin, StreamGroup * sgroup) if (sgroup->outfilter) gst_bin_remove ((GstBin *) ebin, sgroup->outfilter); - g_slice_free (StreamGroup, sgroup); + g_free (sgroup); } static void