mirror of https://github.com/ericonr/sndio.git
Terminate midi thru boxes trying to drain but that have no
outputs anymore, otherwise they can't be cleaned up by dev_close()
This commit is contained in:
parent
35beeb5513
commit
15c8794e5f
|
@ -274,13 +274,17 @@ thru_eof(struct aproc *p, struct abuf *ibuf)
|
||||||
{
|
{
|
||||||
if (!(p->flags & APROC_QUIT))
|
if (!(p->flags & APROC_QUIT))
|
||||||
return;
|
return;
|
||||||
if (LIST_EMPTY(&p->ins))
|
if (LIST_EMPTY(&p->ins) || LIST_EMPTY(&p->outs))
|
||||||
aproc_del(p);
|
aproc_del(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
thru_hup(struct aproc *p, struct abuf *obuf)
|
thru_hup(struct aproc *p, struct abuf *obuf)
|
||||||
{
|
{
|
||||||
|
if (!(p->flags & APROC_QUIT))
|
||||||
|
return;
|
||||||
|
if (LIST_EMPTY(&p->outs))
|
||||||
|
aproc_del(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue