libs: robustify decoder objects and surface proxy initialization.
authorXuGuangxin <guangxin.xu@intel.com>
Thu, 29 Aug 2013 06:04:06 +0000 (14:04 +0800)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 21 Nov 2013 10:08:23 +0000 (11:08 +0100)
commitf9d0d6e2720fa8b9004e839a5f9049c3d5cd3f32
tree6af83649ac25f282f6c3695d85806fe4258bd7d3
parenta6436f27d5103cf01e180f1100a9ccc8a6bbaa87
libs: robustify decoder objects and surface proxy initialization.

Fix GstVaapiPicture, GstVaapiSlice and GstVaapiSurfaceProxy initialization
sequences to have the expected default values set beforehand in case of an
error raising up further during creation. i.e. make it possible to cleanly
destroy those partially initialized objects.

https://bugzilla.gnome.org/show_bug.cgi?id=707108

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