]> git.tuebingen.mpg.de Git - paraslash.git/commit
play: Shut down alsa on input EOF.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 6 Oct 2022 14:11:55 +0000 (16:11 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 18 May 2024 20:03:59 +0000 (22:03 +0200)
commit9aa404fcdea4d8e2da8621315fc31b722b00abd0
tree3bce58a2fa3e75f575823a0d7cf8cf5759d20e08
parentc804020c8fb8af7c73a3494960cae619d20dfc1a
play: Shut down alsa on input EOF.

para_play leaks a lot of memory on exit because we didn't bother
to shut down the alsa subsystem. While this is harmless from the
correctness point of view, it does make it harder to spot real
memory leaks.

Rework the error handling to always shut down alsa via kill_stream().
Combine play_post_monitor() and session_post_monitor() because they
are small enough and the latter was badly named anyway.
play.c