image: fix GstVaapiImage map and unmap.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 20 Nov 2012 13:36:29 +0000 (14:36 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 20 Nov 2012 13:38:19 +0000 (14:38 +0100)
commitc38c0853ebf2979f1321892d42217afb1b9b88fa
tree7b32796ba6756127d6c4e424d53b3c3d6e1dc3a5
parent5fac9d4b5533c92240805e4845064c95e78b1873
image: fix GstVaapiImage map and unmap.

Fix gst_vaapi_image_map() to return TRUE and the GstVaapiImageRaw
structure correctly filled in if the image was already mapped.
Likewise, make gst_vaapi_image_unmap() return TRUE if the image
was already unmapped.
gst-libs/gst/vaapi/gstvaapiimage.c