From 0115042adbf2203696c4cb0b385eb0c111d037fe Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 13 Jun 2024 10:22:58 +0200 Subject: [PATCH] buffer: add that the mapoffset is page aligned --- spa/include/spa/buffer/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/include/spa/buffer/buffer.h b/spa/include/spa/buffer/buffer.h index 2b60bb8f5..7b3b7c00a 100644 --- a/spa/include/spa/buffer/buffer.h +++ b/spa/include/spa/buffer/buffer.h @@ -76,7 +76,7 @@ struct spa_data { * specified with this flag. */ uint32_t flags; /**< data flags */ int64_t fd; /**< optional fd for data */ - uint32_t mapoffset; /**< offset to map fd at */ + uint32_t mapoffset; /**< offset to map fd at, this is page aligned */ uint32_t maxsize; /**< max size of data */ void *data; /**< optional data pointer */ struct spa_chunk *chunk; /**< valid chunk of memory */