]> 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>
Fri, 19 Apr 2024 18:41:23 +0000 (20:41 +0200)
commit9aa1bf4680f23c0db8d8b3edba966d1120c306a7
tree4dd51a3d71b6390875d15252bcf16a4158ff156d
parent6bb20f1e5d6e07d36158183401c95fd06eec235d
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