From 585295e82b55fafedd2aeae09bda42adfbca79ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Sun, 2 Aug 2020 15:54:31 +0200 Subject: [PATCH] va: decoder: remove unused argument And that changes function's namespace --- sys/va/gstvadecoder.c | 3 +-- sys/va/gstvadecoder.h | 3 +-- sys/va/gstvah264dec.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/va/gstvadecoder.c b/sys/va/gstvadecoder.c index 36a6a90..e23728d 100644 --- a/sys/va/gstvadecoder.c +++ b/sys/va/gstvadecoder.c @@ -671,11 +671,10 @@ gst_va_decoder_destroy_buffers (GstVaDecoder * self, GstVaDecodePicture * pic) GstVaDecodePicture * -gst_va_decoder_new_decode_picture (GstVaDecoder * self, VASurfaceID surface) +gst_va_decode_picture_new (VASurfaceID surface) { GstVaDecodePicture *pic; - g_return_val_if_fail (GST_IS_VA_DECODER (self), NULL); g_return_val_if_fail (surface != VA_INVALID_ID, NULL); pic = g_slice_new (GstVaDecodePicture); diff --git a/sys/va/gstvadecoder.h b/sys/va/gstvadecoder.h index 37db122..ee542f4 100644 --- a/sys/va/gstvadecoder.h +++ b/sys/va/gstvadecoder.h @@ -69,8 +69,7 @@ gboolean gst_va_decoder_decode (GstVaDecoder * self, gboolean gst_va_decoder_destroy_buffers (GstVaDecoder * self, GstVaDecodePicture * pic); -GstVaDecodePicture * gst_va_decoder_new_decode_picture (GstVaDecoder * self, - VASurfaceID surface); +GstVaDecodePicture * gst_va_decode_picture_new (VASurfaceID surface); void gst_va_decode_picture_free (GstVaDecodePicture * pic); G_END_DECLS diff --git a/sys/va/gstvah264dec.c b/sys/va/gstvah264dec.c index d2db934..921a4b7 100644 --- a/sys/va/gstvah264dec.c +++ b/sys/va/gstvah264dec.c @@ -538,7 +538,7 @@ gst_va_h264_dec_new_picture (GstH264Decoder * decoder, surface = gst_va_buffer_get_surface (frame->output_buffer, NULL); - pic = gst_va_decoder_new_decode_picture (self->decoder, surface); + pic = gst_va_decode_picture_new (surface); gst_h264_picture_set_user_data (picture, pic, (GDestroyNotify) gst_va_decode_picture_free); -- 2.7.4