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);