diff --git a/sys/va/gstvadecoder.c b/sys/va/gstvadecoder.c index 36a6a90927..e23728d830 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 37db1224d1..ee542f469f 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 d2db9346eb..921a4b736e 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);