decoder: properly reference count pictures.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 26 Jan 2012 14:19:14 +0000 (15:19 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 27 Jan 2012 12:28:12 +0000 (13:28 +0100)
commit2897618b852c0f8e25df40f8980e1c2c5c59653e
treec2bea26bc90460922d0558c0750640cb8549ec83
parent7b19745141d3d653e84e3512b7235292e7c1e17a
decoder: properly reference count pictures.

This fixes cases where a GstVaapiPicture would be destroyed whereas
there is still a valid instance of it in either prev, current or
next picture.
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c
gst-libs/gst/vaapi/gstvaapidecoder_vc1.c