omxbufferpool: fix memory mapping with offset

gst_memory_map() is already adding the offset to the mapped pointer.
Doing it in the memory implementation was resulting in the offset being
accounted twice.

It doesn't matter yet as we are only creating memory without offset for
now but it will once we'll start sharing OMX memories.
This commit is contained in:
Guillaume Desmottes 2019-04-23 15:13:23 +05:30
parent e6639588c0
commit 3018ea5843

View file

@ -88,7 +88,7 @@ gst_omx_memory_map (GstMemory * mem, gsize maxsize, GstMapFlags flags)
{
GstOMXMemory *omem = (GstOMXMemory *) mem;
return omem->buf->omx_buf->pBuffer + omem->mem.offset;
return omem->buf->omx_buf->pBuffer;
}
static void