From a75329ca94e1c2ee9bc30384aabde779e938546b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 21 May 2018 11:50:17 +0200 Subject: [PATCH] libs: decoder: remove gst_vaapi_decoder_new() https://bugzilla.gnome.org/show_bug.cgi?id=796308 --- gst-libs/gst/vaapi/gstvaapidecoder.c | 10 ---------- gst-libs/gst/vaapi/gstvaapidecoder_priv.h | 4 ---- 2 files changed, 14 deletions(-) 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,