The writability of the structure is ensured by the refcount of the parent
miniobject and we're fine if the parent is writable.
* 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);
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 */