aout: keep the requested stereo-mode across several inputs
commitd0893832c64e18687adf7005db54cd2ce34f8071
authorThomas Guillem <thomas@gllm.fr>
Fri, 30 Mar 2018 09:16:31 +0000 (30 11:16 +0200)
committerThomas Guillem <thomas@gllm.fr>
Mon, 16 Apr 2018 08:24:42 +0000 (16 10:24 +0200)
treef064eb48115aae4b122381174bccd4d766b1769f
parent6498cfa126f2ba3dd0a1227aae9d34348bbfb4f4
aout: keep the requested stereo-mode across several inputs

This also fixes the stereo-mode being forgotten when the decoder thread reload
its decoder module and aout.

If the requested stereo-mode is not available, fallback to the default one, but
keep this mode for next inputs. That is why the requested_stereo_mode
intermediate variable is needed.
src/audio_output/aout_internal.h
src/audio_output/dec.c
src/audio_output/output.c