nvdec: implement flush/drain
authorMatthew Waters <matthew@centricular.com>
Fri, 17 Nov 2017 06:09:22 +0000 (17:09 +1100)
committerMatthew Waters <matthew@centricular.com>
Wed, 22 Nov 2017 03:34:33 +0000 (14:34 +1100)
commit4e422bec4fa7be03f7540c2c1d939b36305d0fb3
treeb0dbda3df24cbdf2fc1a472d24376cc76463ce03
parent16294a147e73a597e415ceea001ea953b2ec103e
nvdec: implement flush/drain

Fixes outputted frame sequence when performing a seek

i.e. when seeking backwards, the first frame after the seek was a frame
from the future.  This would result in GstVideoDecoder essentially
marking all the timestamps as essentially bogus and the base class would
attempt to compensate.  A visible indication of this was 'decreasing timestamp'
warning after a seek.

https://bugzilla.gnome.org/show_bug.cgi?id=790478
sys/nvdec/gstnvdec.c