mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
libs: decoder: jpeg: implement reset() callback
and remove create() and destroy() callbacks. https://bugzilla.gnome.org/show_bug.cgi?id=796308
This commit is contained in:
parent
3dbddfa682
commit
c1d65cf1a4
1 changed files with 9 additions and 2 deletions
|
@ -159,6 +159,14 @@ gst_vaapi_decoder_jpeg_create (GstVaapiDecoder * base_decoder)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static GstVaapiDecoderStatus
|
||||
gst_vaapi_decoder_jpeg_reset (GstVaapiDecoder * base_decoder)
|
||||
{
|
||||
gst_vaapi_decoder_jpeg_destroy (base_decoder);
|
||||
gst_vaapi_decoder_jpeg_create (base_decoder);
|
||||
return GST_VAAPI_DECODER_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static GstVaapiDecoderStatus
|
||||
ensure_context (GstVaapiDecoderJpeg * decoder)
|
||||
{
|
||||
|
@ -864,8 +872,7 @@ gst_vaapi_decoder_jpeg_class_init (GstVaapiDecoderJpegClass * klass)
|
|||
|
||||
object_class->finalize = gst_vaapi_decoder_jpeg_finalize;
|
||||
|
||||
decoder_class->create = gst_vaapi_decoder_jpeg_create;
|
||||
decoder_class->destroy = gst_vaapi_decoder_jpeg_destroy;
|
||||
decoder_class->reset = gst_vaapi_decoder_jpeg_reset;
|
||||
decoder_class->parse = gst_vaapi_decoder_jpeg_parse;
|
||||
decoder_class->decode = gst_vaapi_decoder_jpeg_decode;
|
||||
decoder_class->start_frame = gst_vaapi_decoder_jpeg_start_frame;
|
||||
|
|
Loading…
Reference in a new issue