encodebin: drop use of GSlice

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
Tim-Philipp Müller 2023-01-08 15:59:55 +00:00 committed by GStreamer Marge Bot
parent 165fdac5c6
commit 0feb2770e6

View file

@ -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