buffer: document memory type when allocating

When allocating buffers the type will contain a bitmask of
allowed types.
This commit is contained in:
Wim Taymans 2020-03-02 17:21:16 +01:00
parent c8633767e7
commit fef0e17b76
2 changed files with 4 additions and 1 deletions

View file

@ -103,6 +103,7 @@ static int alloc_buffers(struct pw_mempool *pool,
d->maxsize = data_sizes[i];
SPA_FLAG_SET(d->flags, SPA_DATA_FLAG_READWRITE);
} else {
/* type is a bitmask of allowed types */
d->type = SPA_ID_INVALID;
d->maxsize = 0;
}