mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
parent
dacbeca77e
commit
71a918fae1
1 changed files with 9 additions and 2 deletions
|
|
@ -584,6 +584,9 @@ static int handle_input(struct data *data)
|
||||||
return -errno;
|
return -errno;
|
||||||
buf[r] = 0;
|
buf[r] = 0;
|
||||||
|
|
||||||
|
if (r == 0)
|
||||||
|
return -EPIPE;
|
||||||
|
|
||||||
if ((p = strchr(buf, '#')))
|
if ((p = strchr(buf, '#')))
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
|
|
@ -679,8 +682,12 @@ static int do_prompt(struct data *data)
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
if (pfds[0].revents & POLLIN)
|
if (pfds[0].revents & POLLIN) {
|
||||||
handle_input(data);
|
if ((err = handle_input(data)) < 0) {
|
||||||
|
if (err == -EPIPE)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (count < 2)
|
if (count < 2)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue