vaapidecode: flush output adapter at drain()
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Sun, 10 Jul 2016 16:18:57 +0000 (18:18 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 11 Jul 2016 08:40:14 +0000 (10:40 +0200)
commitb392b4f0642fa63cf89e28568460c81e1c02fbf6
tree060e43d5692baa6c99ed3b92c3af47f6d55eec1b
parent03e85bbc0f0bd19b9c6ccd711d299a9c33afbe67
vaapidecode: flush output adapter at drain()

Calling drain() vmethod means "decode any data it can at this point, but that
more data may arrive after". Hence, vaapidecode should check if there is data
in the output adapter and process them, without destroying the decoded picture
buffer (dpb).

Since this operation is done by gst_vaapidecode_internal_flush(), the operation
was refactored into a new function gst_vaapidecode_flush_output_adapter().

https://bugzilla.gnome.org/show_bug.cgi?id=768652
gst/vaapi/gstvaapidecode.c