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:
Seungha Yang 2023-04-22 04:11:40 +09:00 committed by GStreamer Marge Bot
parent ef89bac181
commit b7083ad242
2 changed files with 8 additions and 7 deletions

View file

@ -463,18 +463,19 @@ gst_sample_unref (GstSample * sample)
/**
* gst_sample_copy: (skip)
* @buf: a #GstSample.
* @sample: a #GstSample.
*
* Create a copy of the given sample. This will also make a newly allocated
* 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
*/
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)));
GST_SAMPLE_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST
(sample)));
}

View file

@ -150,13 +150,13 @@ void gst_sample_unref (GstSample * sample);
#ifndef GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS
/* copy sample */
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 */
GST_API
GstSample * gst_sample_copy(const GstSample * buf);
GstSample * gst_sample_copy (const GstSample * sample);
#endif /* GST_DISABLE_MINIOBJECT_INLINE_FUNCTIONS */
/**