]> git.tue.mpg.de Git - paraslash.git/commit
audiod: Stop stream immediately when being switched off.
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 9 Mar 2022 22:56:56 +0000 (23:56 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 28 Mar 2022 20:28:20 +0000 (22:28 +0200)
commitdd83d1e96f5bbb6b22471e47d1a8f1dd62e0df75
treed52cf91414bc80c21e9cf8c6b987c9bfeaec05a5
parentec68178958818fab236cb59b084c65a60f2d67b1
audiod: Stop stream immediately when being switched off.

When para_audiod enters off/standby mode, we stop the receiver
but continue to filter and write data already received until the
input queue has drained. This can take several seconds, which may
be annoying.

To stop the stream immediately, stop the writer(s) rather than the
receiver. We still only stop the receiver when the server has paused
or stopped the stream because we don't want to discard any data in
this case.
audiod.c