From 5477399881116c504d162fb7359521c5d8b3e443 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 1 Dec 2011 18:49:34 +0100 Subject: [PATCH] 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. --- gst/gstsample.c | 2 +- gst/gstsample.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstsample.c b/gst/gstsample.c index 227f9eb..3a09460 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 8b25595..60c74e4 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 */ -- 2.7.4