mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
e6639588c0
commit
3018ea5843
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ gst_omx_memory_map (GstMemory * mem, gsize maxsize, GstMapFlags flags)
|
||||||
{
|
{
|
||||||
GstOMXMemory *omem = (GstOMXMemory *) mem;
|
GstOMXMemory *omem = (GstOMXMemory *) mem;
|
||||||
|
|
||||||
return omem->buf->omx_buf->pBuffer + omem->mem.offset;
|
return omem->buf->omx_buf->pBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue