vaapisink: retain VA surface until another one is displayed.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 24 Aug 2012 13:30:33 +0000 (16:30 +0300)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 29 Aug 2012 10:05:00 +0000 (12:05 +0200)
commite36fb69ef907333fce851ff6bb644ea3b5b0b165
treef416dce425effd79a24dd0cdb32b6d5adef1b52c
parentab8b0359e16107d59d3f216688e4e86a4aeb6eea
vaapisink: retain VA surface until another one is displayed.

Keep VA surface proxy associated with the surface that is currently
being displayed. This makes sure that surface is not released back
to the pool of surfaces free to use for decoding. This is necessary
with VA driver implementations that support rendering to an overlay
pipe. Otherwise, there could be cases where we are decoding into a
surface that is being displayed, hence some flickering.
gst/vaapi/gstvaapisink.c
gst/vaapi/gstvaapisink.h