mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
memblockq: decode unset chunks as NULL chunks again
This fixes asserts beeing hit when see requests are posted via the native protocol.
This commit is contained in:
parent
e5f547fe70
commit
575ba65714
3 changed files with 13 additions and 1 deletions
|
|
@ -110,3 +110,12 @@ pa_memchunk* pa_memchunk_memcpy(pa_memchunk *dst, pa_memchunk *src) {
|
|||
|
||||
return dst;
|
||||
}
|
||||
|
||||
pa_bool_t pa_memchunk_isset(pa_memchunk *chunk) {
|
||||
assert(chunk);
|
||||
|
||||
return
|
||||
chunk->memblock ||
|
||||
chunk->index > 0 ||
|
||||
chunk->length > 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue