vaapidecode: fix hard reset for seek cases.
authorXuGuangxin <guangxin.xu@intel.com>
Thu, 29 Aug 2013 06:12:10 +0000 (14:12 +0800)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 21 Nov 2013 10:08:23 +0000 (11:08 +0100)
commit6e85f08e33db4a227e4c9c373926a156698e5403
tree5d6fa66127e3c0c1257dbd43f6a29f11714607cc
parent367944ba322f66ecb7435583fcde7663f853aa40
vaapidecode: fix hard reset for seek cases.

Fix hard reset for seek cases by flushing the GstVaapiDecoder queue
and completely purge any decoded output frame that may come out from
it. At this stage, the GstVaapiDecoder shall be in a complete clean
state to start decoding over new buffers.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst/vaapi/gstvaapidecode.c