summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2019-04-23 15:13:23 +0530
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>2019-04-23 15:32:05 +0530
commit3018ea584361e88b45f6627141a9ac064d6cd4bc (patch)
tree282e62806af9f0c07266457639f175fbf1d69725
parente6639588c0271c7c6825247c3bebca8620cdecef (diff)
downloadgst-omx-3018ea584361e88b45f6627141a9ac064d6cd4bc.tar.gz
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.
-rw-r--r--omx/gstomxbufferpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/omx/gstomxbufferpool.c b/omx/gstomxbufferpool.c
index c662c42..a77ade6 100644
--- a/omx/gstomxbufferpool.c
+++ b/omx/gstomxbufferpool.c
@@ -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