decoder: retain proxy surface until the GstVaapiPicture is destroyed.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 26 Jan 2012 14:28:42 +0000 (15:28 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 27 Jan 2012 14:56:32 +0000 (15:56 +0100)
commit4a46b5d6c4a54fcb50828ee2b590d46b5f409906
tree6e99ce7c5bb92c33e4eaf69fc0ce8cdb6cca7645
parent2897618b852c0f8e25df40f8980e1c2c5c59653e
decoder: retain proxy surface until the GstVaapiPicture is destroyed.

Keep a valid reference to the proxy in GstVaapiPicture so that frames
marked as "used for reference" could be kept during the lifetime of the
picture. i.e. don't release them too soon as they could be re-used right
away.
gst-libs/gst/vaapi/gstvaapidecoder_objects.c
gst-libs/gst/vaapi/gstvaapidecoder_objects.h