va: decoder: remove unused argument

And that changes function's namespace
This commit is contained in:
Víctor Manuel Jáquez Leal 2020-08-02 15:54:31 +02:00
parent 5154ee7f4c
commit 585295e82b
3 changed files with 3 additions and 5 deletions

View file

@ -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);

View file

@ -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

View file

@ -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);