vaapivideomemory: disallow memory shares across buffers, use a copy.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 24 Jul 2014 09:58:29 +0000 (11:58 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 24 Jul 2014 09:58:29 +0000 (11:58 +0200)
commite0e869f536a888191225249b3ade5979516c29d8
tree5c8d0cc26791540d4476988cd26638b95f287d2c
parent3a762284a26b8aa91226e27459176876655330ae
vaapivideomemory: disallow memory shares across buffers, use a copy.

Forbid shares of GstMemory instances, and rather make copy of it. This
effectively copies the GstMemory structure and enclosed metadata, but
this does not copy the VA surface contents itself. It should though.

This fixes preroll and makes sure to not download garbage for the first
frame when a SW rendering sink is used.
gst/vaapi/gstvaapivideomemory.c