mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-12 13:30:10 -05:00
raop: Fix check for invalid file descriptor
file descriptor 0 is valid Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
This commit is contained in:
parent
6b7b70c472
commit
74abce331b
2 changed files with 16 additions and 16 deletions
|
|
@ -247,7 +247,7 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
|
|||
if (u->rtpoll_item) {
|
||||
pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, &nbfds);
|
||||
for (i = 0; i < nbfds; i++) {
|
||||
if (pollfd && pollfd->fd > 0)
|
||||
if (pollfd && pollfd->fd >= 0)
|
||||
pa_close(pollfd->fd);
|
||||
pollfd++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue