Commit d4112d3d authored by Committed by Víctor Manuel Jáquez Leal
msdk: Allow video and system memory share among buffers
gst_buffer_make_writable() requires exclusive reference to the GstMemory so the _make_writable() for the msdk buffer will result to fallback system memory copy, because the msdk memory were initialized with GST_MEMORY_FLAG_NO_SHARE flag. Note that, disable sharing GstMemory brings high overhead but actually the msdk memory objects can be shared over multiple buffers. If the memory is not shareable, newly added GstAllocator::mem_copy will create copied msdk memory.
Showing with 59 additions and 2 deletions