GstVaapiVideoMemory doesn't allow GST_MAP_WRITE mapping
Submitted by Michał Wróbel
Link to original bug (#751711)
Description
Trying to map the buffer in GST_MAP_READ | GST_MAP_WRITE mode fails with gst.vaapivideomemory unsupported map flags (0x3) at gstreamer-vaapi/gst/vaapi/gstvaapivideomemory.c:436. Is there any particular reason why gst_vaapi_video_memory_map() doesn't just use the same kind of mapping it does for GST_MAP_READ? LibVA documentation [1] doesn't seem mention that vaMapBuffer-mapped buffers shouldn't be tampered with...
[1] http://01org.github.io/libva_master_doxygen/group__api__core.html#gaf14c698af1d0920f4aeb5eb11f81b6aa