From: Tim-Philipp Müller Date: Thu, 14 Jun 2012 22:38:54 +0000 (+0100) Subject: sample: no need to store the size of the sample structure inside the structure X-Git-Tag: RELEASE-0.11.93~322 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcd6e1f89c96d011a76370f7d2f21c768108501b;p=platform%2Fupstream%2Fgstreamer.git sample: no need to store the size of the sample structure inside the structure --- diff --git a/gst/gstsample.c b/gst/gstsample.c index 44342cc..74632f2 100644 --- a/gst/gstsample.c +++ b/gst/gstsample.c @@ -37,8 +37,6 @@ struct _GstSample { GstMiniObject mini_object; - gsize slice_size; - GstBuffer *buffer; GstCaps *caps; GstSegment segment; @@ -76,7 +74,7 @@ _gst_sample_free (GstSample * sample) if (sample->caps) gst_caps_unref (sample->caps); - g_slice_free1 (sample->slice_size, sample); + g_slice_free1 (sizeof (GstSample), sample); } /** @@ -110,7 +108,6 @@ gst_sample_new (GstBuffer * buffer, GstCaps * caps, const GstSegment * segment, sample->mini_object.copy = (GstMiniObjectCopyFunction) _gst_sample_copy; sample->mini_object.free = (GstMiniObjectFreeFunction) _gst_sample_free; - sample->slice_size = sizeof (GstSample); sample->buffer = buffer ? gst_buffer_ref (buffer) : NULL; sample->caps = caps ? gst_caps_ref (caps) : NULL;