From: Wim Taymans Date: Thu, 1 Dec 2011 17:49:34 +0000 (+0100) Subject: sample: remove const X-Git-Tag: RELEASE-0.11.2~355 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5477399881116c504d162fb7359521c5d8b3e443;p=platform%2Fupstream%2Fgstreamer.git sample: remove const The writability of the structure is ensured by the refcount of the parent miniobject and we're fine if the parent is writable. --- diff --git a/gst/gstsample.c b/gst/gstsample.c index 227f9eb12e..3a09460410 100644 --- a/gst/gstsample.c +++ b/gst/gstsample.c @@ -174,7 +174,7 @@ gst_sample_get_caps (GstSample * sample) * Returns: (transfer none): the segment of @sample. * The segment remains valid as long as @sample is valid. */ -const GstSegment * +GstSegment * gst_sample_get_segment (GstSample * sample) { g_return_val_if_fail (GST_IS_SAMPLE (sample), NULL); diff --git a/gst/gstsample.h b/gst/gstsample.h index 8b2559506f..60c74e431e 100644 --- a/gst/gstsample.h +++ b/gst/gstsample.h @@ -63,7 +63,7 @@ GstSample * gst_sample_new (GstBuffer *buffer, GstBuffer * gst_sample_get_buffer (GstSample *sample); GstCaps * gst_sample_get_caps (GstSample *sample); -const GstSegment * gst_sample_get_segment (GstSample *sample); +GstSegment * gst_sample_get_segment (GstSample *sample); const GstStructure * gst_sample_get_info (GstSample *sample); /* refcounting */