mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
sample: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
f343d01f10
commit
19a6468a53
1 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ _gst_sample_free (GstSample * sample)
|
|||
memset (sample, 0xff, sizeof (GstSample));
|
||||
#endif
|
||||
|
||||
g_slice_free1 (sizeof (GstSample), sample);
|
||||
g_free (sample);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -129,7 +129,7 @@ gst_sample_new (GstBuffer * buffer, GstCaps * caps, const GstSegment * segment,
|
|||
{
|
||||
GstSample *sample;
|
||||
|
||||
sample = g_slice_new0 (GstSample);
|
||||
sample = g_new0 (GstSample, 1);
|
||||
|
||||
GST_LOG ("new %p", sample);
|
||||
|
||||
|
|
Loading…
Reference in a new issue