mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
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.
This commit is contained in:
parent
8acc2d9dc7
commit
5477399881
2 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ gst_sample_get_caps (GstSample * sample)
|
||||||
* Returns: (transfer none): the segment of @sample.
|
* Returns: (transfer none): the segment of @sample.
|
||||||
* The segment remains valid as long as @sample is valid.
|
* The segment remains valid as long as @sample is valid.
|
||||||
*/
|
*/
|
||||||
const GstSegment *
|
GstSegment *
|
||||||
gst_sample_get_segment (GstSample * sample)
|
gst_sample_get_segment (GstSample * sample)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (GST_IS_SAMPLE (sample), NULL);
|
g_return_val_if_fail (GST_IS_SAMPLE (sample), NULL);
|
||||||
|
|
|
@ -63,7 +63,7 @@ GstSample * gst_sample_new (GstBuffer *buffer,
|
||||||
|
|
||||||
GstBuffer * gst_sample_get_buffer (GstSample *sample);
|
GstBuffer * gst_sample_get_buffer (GstSample *sample);
|
||||||
GstCaps * gst_sample_get_caps (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);
|
const GstStructure * gst_sample_get_info (GstSample *sample);
|
||||||
|
|
||||||
/* refcounting */
|
/* refcounting */
|
||||||
|
|
Loading…
Reference in a new issue