diff --git a/subprojects/gstreamer/gst/gstsample.c b/subprojects/gstreamer/gst/gstsample.c index eb4bf7b701..b8af1a3432 100644 --- a/subprojects/gstreamer/gst/gstsample.c +++ b/subprojects/gstreamer/gst/gstsample.c @@ -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))); } diff --git a/subprojects/gstreamer/gst/gstsample.h b/subprojects/gstreamer/gst/gstsample.h index e3023b097c..ab83143d2b 100644 --- a/subprojects/gstreamer/gst/gstsample.h +++ b/subprojects/gstreamer/gst/gstsample.h @@ -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 */ /**