[Bug 768652] vaapidecode: improves for flush and drain

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jul 11 08:40:18 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=768652

--- Comment #1 from Víctor Manuel Jáquez Leal <vjaquez at igalia.com> ---
Created attachment 331187
  --> https://bugzilla.gnome.org/attachment.cgi?id=331187&action=edit
vaapidecode: call purge at flush()

Calling flush() vmethod means "to flush all remaining data from the decoder
without pushing it downstream".

Nonetheless flush() is calling gst_vaapidecode_internal_flush(), which calls
gst_video_decoder_have_frame() if there is still something in the input
adapter, which may push buffers to downstream by calling handle_frame().

This patch changes this behavior by calling gst_vaapidecode_purge() rather
than gst_vaapidecode_internal_flush(), which does what we want: flushes the VA
decoder and releases all the rest of decoded frames.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list