mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
va: decoder: remove unused argument
And that changes function's namespace
This commit is contained in:
parent
5154ee7f4c
commit
585295e82b
3 changed files with 3 additions and 5 deletions
|
@ -671,11 +671,10 @@ gst_va_decoder_destroy_buffers (GstVaDecoder * self, GstVaDecodePicture * pic)
|
||||||
|
|
||||||
|
|
||||||
GstVaDecodePicture *
|
GstVaDecodePicture *
|
||||||
gst_va_decoder_new_decode_picture (GstVaDecoder * self, VASurfaceID surface)
|
gst_va_decode_picture_new (VASurfaceID surface)
|
||||||
{
|
{
|
||||||
GstVaDecodePicture *pic;
|
GstVaDecodePicture *pic;
|
||||||
|
|
||||||
g_return_val_if_fail (GST_IS_VA_DECODER (self), NULL);
|
|
||||||
g_return_val_if_fail (surface != VA_INVALID_ID, NULL);
|
g_return_val_if_fail (surface != VA_INVALID_ID, NULL);
|
||||||
|
|
||||||
pic = g_slice_new (GstVaDecodePicture);
|
pic = g_slice_new (GstVaDecodePicture);
|
||||||
|
|
|
@ -69,8 +69,7 @@ gboolean gst_va_decoder_decode (GstVaDecoder * self,
|
||||||
gboolean gst_va_decoder_destroy_buffers (GstVaDecoder * self,
|
gboolean gst_va_decoder_destroy_buffers (GstVaDecoder * self,
|
||||||
GstVaDecodePicture * pic);
|
GstVaDecodePicture * pic);
|
||||||
|
|
||||||
GstVaDecodePicture * gst_va_decoder_new_decode_picture (GstVaDecoder * self,
|
GstVaDecodePicture * gst_va_decode_picture_new (VASurfaceID surface);
|
||||||
VASurfaceID surface);
|
|
||||||
void gst_va_decode_picture_free (GstVaDecodePicture * pic);
|
void gst_va_decode_picture_free (GstVaDecodePicture * pic);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
|
@ -538,7 +538,7 @@ gst_va_h264_dec_new_picture (GstH264Decoder * decoder,
|
||||||
|
|
||||||
surface = gst_va_buffer_get_surface (frame->output_buffer, NULL);
|
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,
|
gst_h264_picture_set_user_data (picture, pic,
|
||||||
(GDestroyNotify) gst_va_decode_picture_free);
|
(GDestroyNotify) gst_va_decode_picture_free);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue