libs: decoder: remove destoy() and create() callbacks

They were all replaced by reset()

https://bugzilla.gnome.org/show_bug.cgi?id=796308
This commit is contained in:
Víctor Manuel Jáquez Leal 2018-05-21 13:38:00 +02:00
parent 60dad9fa02
commit a2f923f9e9
2 changed files with 1 additions and 7 deletions

View file

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

View file

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