]> git.tuebingen.mpg.de Git - paraslash.git/commit
audiod: Avoid starting the wrong decoder on server restarts.
authorAndre Noll <maan@systemlinux.org>
Sat, 19 Dec 2009 15:50:28 +0000 (16:50 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 19 Dec 2009 15:50:28 +0000 (16:50 +0100)
commitd0ad002f9e8a8d1898883209d902a97791cb8814
tree5836f55db550ad3a72cbeae6e27a3199e79bfebe
parent58151b60c9782a52aac5d39ace7e69c3635ee260
audiod: Avoid starting the wrong decoder on server restarts.

If para_server is restarted and starts streaming using another audio format than
the one used before the restart, para_audiod might end up starting the decoder
associated with the old audio format.

Fix this by invalidating current_audio_format_num in close_stat_pipe() which is
called when the server goes away.
audiod.c