mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 07:26:33 +00:00
sample: Fix typo around gst_sample_copy() method
It's sample, not buffer Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4473>
This commit is contained in:
parent
ef89bac181
commit
b7083ad242
2 changed files with 8 additions and 7 deletions
|
@ -463,18 +463,19 @@ gst_sample_unref (GstSample * sample)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_sample_copy: (skip)
|
* gst_sample_copy: (skip)
|
||||||
* @buf: a #GstSample.
|
* @sample: a #GstSample.
|
||||||
*
|
*
|
||||||
* Create a copy of the given sample. This will also make a newly allocated
|
* Create a copy of the given sample. This will also make a newly allocated
|
||||||
* copy of the data the source sample contains.
|
* copy of the data the source sample contains.
|
||||||
*
|
*
|
||||||
* Returns: (transfer full): a new copy of @buf.
|
* Returns: (transfer full): a new copy of @sample.
|
||||||
*
|
*
|
||||||
* Since: 1.2
|
* Since: 1.2
|
||||||
*/
|
*/
|
||||||
GstSample *
|
GstSample *
|
||||||
gst_sample_copy (const GstSample * buf)
|
gst_sample_copy (const GstSample * sample)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
GST_SAMPLE_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST (buf)));
|
GST_SAMPLE_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST
|
||||||
|
(sample)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,13 +150,13 @@ void gst_sample_unref (GstSample * sample);
|
||||||
#ifndef GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS
|
#ifndef GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS
|
||||||
/* copy sample */
|
/* copy sample */
|
||||||
static inline GstSample *
|
static inline GstSample *
|
||||||
gst_sample_copy (const GstSample * buf)
|
gst_sample_copy (const GstSample * sample)
|
||||||
{
|
{
|
||||||
return GST_SAMPLE_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST (buf)));
|
return GST_SAMPLE_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST (sample)));
|
||||||
}
|
}
|
||||||
#else /* GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS */
|
#else /* GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS */
|
||||||
GST_API
|
GST_API
|
||||||
GstSample * gst_sample_copy(const GstSample * buf);
|
GstSample * gst_sample_copy (const GstSample * sample);
|
||||||
#endif /* GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS */
|
#endif /* GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue