Skip to content
Commit 56e2d6a3 authored by Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto
Browse files

filter, stream: Fix error check for DMA-BUF buffers

When a buffer is of type SPA_DATA_DmaBuf, the 'data' field
will be NULL - we instead have to check if the file descriptor
is valid. The current code, however, always checks if the
data is NULL, which gives a false positive for DMA-BUF buffers,
signaling an error when there is none.

Fix that by also checking if the buffer type is MemPtr together
with the NULL check of the 'data' field.
parent 4b076549
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment