diff options
-rw-r--r-- | sys/kms/gstkmssink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kms/gstkmssink.c b/sys/kms/gstkmssink.c index 2f05c633d..8ddb6e104 100644 --- a/sys/kms/gstkmssink.c +++ b/sys/kms/gstkmssink.c @@ -1090,6 +1090,10 @@ gst_kms_sink_import_dmabuf (GstKMSSink * self, GstBuffer * inbuf, mems[i] = gst_buffer_peek_memory (inbuf, mems_idx[i]); + /* adjust for memory offset, in case data does not + * start from byte 0 in the dmabuf fd */ + mems_skip[i] += mems[i]->offset; + /* And all memory found must be dmabuf */ if (!gst_is_dmabuf_memory (mems[i])) return FALSE; |