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:
Lennart Poettering 2011-04-21 21:05:51 +02:00
parent e5f547fe70
commit 575ba65714
3 changed files with 13 additions and 1 deletions

View file

@ -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;
}