diff --git a/gst-libs/gst/vaapi/gstvaapidecoder.c b/gst-libs/gst/vaapi/gstvaapidecoder.c index ea774d75d2..adf2a04e1c 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder.c @@ -586,16 +586,6 @@ gst_vaapi_decoder_init (GstVaapiDecoder * decoder) gst_video_codec_frame_unref); } -GstVaapiDecoder * -gst_vaapi_decoder_new (GstVaapiDisplay * display, GstCaps * caps) -{ - g_return_val_if_fail (display != NULL, NULL); - g_return_val_if_fail (GST_IS_CAPS (caps), NULL); - - return g_object_new (GST_TYPE_VAAPI_DECODER, "display", display, - "caps", caps, NULL); -} - /** * gst_vaapi_decoder_ref: * @decoder: a #GstVaapiDecoder diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_priv.h b/gst-libs/gst/vaapi/gstvaapidecoder_priv.h index cdd80782f7..e512d81343 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_priv.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder_priv.h @@ -228,10 +228,6 @@ struct _GstVaapiDecoderClass const guchar * buf, guint buf_size); }; -G_GNUC_INTERNAL -GstVaapiDecoder * -gst_vaapi_decoder_new (GstVaapiDisplay * display, GstCaps * caps); - G_GNUC_INTERNAL void gst_vaapi_decoder_set_picture_size (GstVaapiDecoder * decoder,