mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-19 12:45:54 +00:00
h264: implement GstVaapiDecoder::flush() as a DPB flush.
This commit is contained in:
parent
34162f5001
commit
319f87f142
1 changed files with 11 additions and 0 deletions
|
@ -3036,6 +3036,16 @@ gst_vaapi_decoder_h264_end_frame(GstVaapiDecoder *base_decoder)
|
||||||
return decode_current_picture(decoder);
|
return decode_current_picture(decoder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static GstVaapiDecoderStatus
|
||||||
|
gst_vaapi_decoder_h264_flush(GstVaapiDecoder *base_decoder)
|
||||||
|
{
|
||||||
|
GstVaapiDecoderH264 * const decoder =
|
||||||
|
GST_VAAPI_DECODER_H264_CAST(base_decoder);
|
||||||
|
|
||||||
|
dpb_flush(decoder);
|
||||||
|
return GST_VAAPI_DECODER_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_vaapi_decoder_h264_finalize(GObject *object)
|
gst_vaapi_decoder_h264_finalize(GObject *object)
|
||||||
{
|
{
|
||||||
|
@ -3075,6 +3085,7 @@ gst_vaapi_decoder_h264_class_init(GstVaapiDecoderH264Class *klass)
|
||||||
decoder_class->decode = gst_vaapi_decoder_h264_decode;
|
decoder_class->decode = gst_vaapi_decoder_h264_decode;
|
||||||
decoder_class->start_frame = gst_vaapi_decoder_h264_start_frame;
|
decoder_class->start_frame = gst_vaapi_decoder_h264_start_frame;
|
||||||
decoder_class->end_frame = gst_vaapi_decoder_h264_end_frame;
|
decoder_class->end_frame = gst_vaapi_decoder_h264_end_frame;
|
||||||
|
decoder_class->flush = gst_vaapi_decoder_h264_flush;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue