From a2f923f9e974a12fc71f158783c23fe12dfb2d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 21 May 2018 13:38:00 +0200 Subject: [PATCH] libs: decoder: remove destoy() and create() callbacks They were all replaced by reset() https://bugzilla.gnome.org/show_bug.cgi?id=796308 --- gst-libs/gst/vaapi/gstvaapidecoder.c | 6 +----- gst-libs/gst/vaapi/gstvaapidecoder_priv.h | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder.c b/gst-libs/gst/vaapi/gstvaapidecoder.c index 8bc67808f8..6c89713678 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder.c @@ -1084,11 +1084,7 @@ gst_vaapi_decoder_reset (GstVaapiDecoder * decoder) if (klass->reset) { ret = klass->reset (decoder); } else { - if (klass->destroy) - klass->destroy (decoder); - if (klass->create) - if (!klass->create (decoder)) - ret = GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN; + GST_WARNING_OBJECT (decoder, "missing reset() implementation"); } if (ret != GST_VAAPI_DECODER_STATUS_SUCCESS) diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_priv.h b/gst-libs/gst/vaapi/gstvaapidecoder_priv.h index e512d81343..10b8d2cf77 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_priv.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder_priv.h @@ -212,8 +212,6 @@ struct _GstVaapiDecoderClass /*< private >*/ GstObjectClass parent_class; - gboolean (*create) (GstVaapiDecoder * decoder); - void (*destroy) (GstVaapiDecoder * decoder); GstVaapiDecoderStatus (*parse) (GstVaapiDecoder * decoder, GstAdapter * adapter, gboolean at_eos, struct _GstVaapiDecoderUnit * unit);