mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
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:
parent
60dad9fa02
commit
a2f923f9e9
2 changed files with 1 additions and 7 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue