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>
Mon, 17 Dec 2012 13:56:11 +0000 (14:56 +0100)
commit9dc70a0ce6a4a36ab6fb9bd0b5f189efc679b767
tree3477694c09ce2c7604ffdb4762523155ffdcae49
parentf81450ad39b3f73c8f22ff4e62e8d3e58d57ffe9
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