vaapiencode: implement flush() vmethod
authorHyunjun Ko <zzoon@igalia.com>
Wed, 6 Jul 2016 02:17:23 +0000 (11:17 +0900)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 11 Jul 2016 17:03:52 +0000 (19:03 +0200)
commitd94001b82005e3d58b915d1fb9224db76bbe82f8
treec29900eb1c6ca277632f9c5c53470069653a773a
parentfcc08627e58c82e62e7310bb9caaf9a984b63e44
vaapiencode: implement flush() vmethod

In order to handle correctly seek and other operations, vaapiencode should
flush all the remaining data from the encoder without pushing it downstream.

This patch implements the flush() vmethod, only after of pausing the
source pad task, and restarting it again after the flush stop.

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

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
gst/vaapi/gstvaapiencode.c