plugins: improve video memory flags safety checks.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 3 Jun 2013 08:06:29 +0000 (10:06 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 5 Jun 2013 09:09:37 +0000 (11:09 +0200)
commit33f641569640b6886a670454c431983bb6aeb519
tree5dcb24a5d68f23010e881270ada01f4a097aa454
parent18031dc6ffede9b2f6bb73a2d16edcb097b43566
plugins: improve video memory flags safety checks.

On map, ensure we have GST_MAP_WRITE flags since this is only what we
support for now. Likewise, on unmap, make sure that the VA image is
unmapped for either read or write, while still committing it to the
VA surface if write was requested.
gst/vaapi/gstvaapivideomemory.c