mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-05 05:52:37 +00:00
libs: decoder: mpeg4: implement reset() callback
remove destroy() and create() callback https://bugzilla.gnome.org/show_bug.cgi?id=796308
This commit is contained in:
parent
0374a8c0a5
commit
5b3f6eb285
1 changed files with 9 additions and 2 deletions
|
@ -183,6 +183,14 @@ gst_vaapi_decoder_mpeg4_create (GstVaapiDecoder * base_decoder)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static GstVaapiDecoderStatus
|
||||||
|
gst_vaapi_decoder_mpeg4_reset (GstVaapiDecoder * base_decoder)
|
||||||
|
{
|
||||||
|
gst_vaapi_decoder_mpeg4_destroy (base_decoder);
|
||||||
|
gst_vaapi_decoder_mpeg4_create (base_decoder);
|
||||||
|
return GST_VAAPI_DECODER_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
copy_quant_matrix (guint8 dst[64], const guint8 src[64])
|
copy_quant_matrix (guint8 dst[64], const guint8 src[64])
|
||||||
{
|
{
|
||||||
|
@ -1177,8 +1185,7 @@ gst_vaapi_decoder_mpeg4_class_init (GstVaapiDecoderMpeg4Class * klass)
|
||||||
|
|
||||||
object_class->finalize = gst_vaapi_decoder_mpeg4_finalize;
|
object_class->finalize = gst_vaapi_decoder_mpeg4_finalize;
|
||||||
|
|
||||||
decoder_class->create = gst_vaapi_decoder_mpeg4_create;
|
decoder_class->reset = gst_vaapi_decoder_mpeg4_reset;
|
||||||
decoder_class->destroy = gst_vaapi_decoder_mpeg4_destroy;
|
|
||||||
decoder_class->parse = gst_vaapi_decoder_mpeg4_parse;
|
decoder_class->parse = gst_vaapi_decoder_mpeg4_parse;
|
||||||
decoder_class->decode = gst_vaapi_decoder_mpeg4_decode;
|
decoder_class->decode = gst_vaapi_decoder_mpeg4_decode;
|
||||||
decoder_class->decode_codec_data = gst_vaapi_decoder_mpeg4_decode_codec_data;
|
decoder_class->decode_codec_data = gst_vaapi_decoder_mpeg4_decode_codec_data;
|
||||||
|
|
Loading…
Reference in a new issue