mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
raop: silence a Coverity complaint
CID: 1398155
This commit is contained in:
parent
e03e01b089
commit
295d4db8cf
1 changed files with 7 additions and 0 deletions
|
|
@ -391,6 +391,13 @@ static void thread_func(void *userdata) {
|
||||||
if (!pa_raop_client_can_stream(u->raop))
|
if (!pa_raop_client_can_stream(u->raop))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/* This assertion is meant to silence a complaint from Coverity about
|
||||||
|
* pollfd being possibly NULL when we access it later. That's a false
|
||||||
|
* positive, because we check pa_raop_client_can_stream() above, and if
|
||||||
|
* that returns true, it means that the connection is up, and when the
|
||||||
|
* connection is up, pollfd will be non-NULL. */
|
||||||
|
pa_assert(pollfd);
|
||||||
|
|
||||||
if (u->memchunk.length <= 0) {
|
if (u->memchunk.length <= 0) {
|
||||||
if (u->memchunk.memblock)
|
if (u->memchunk.memblock)
|
||||||
pa_memblock_unref(u->memchunk.memblock);
|
pa_memblock_unref(u->memchunk.memblock);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue