prebuffer: Remove buffer tree node on errors.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 5 Apr 2021 18:29:28 +0000 (20:29 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 12 Apr 2021 13:16:52 +0000 (15:16 +0200)
commit8c13bf36f418e8476c268d376e79491fcb48a0f2
tree26556e6dbc4ac71483f8d02385fad19b1466221d
parent09600fc5f69a06dd9dfa6e7363894c473a08b3be
prebuffer: Remove buffer tree node on errors.

When the ->post_select method of a filter returns negative, it *must*
remove its buffer tree node as well. The prebuffer missed to do that,
which results in a stale reference to the buffer tree which keeps
the audiod slot busy. When no more slots are free, audiod hangs or
exits with a "no more free slots" message. This patch avoids this.
prebuffer_filter.c