mmdevice: don't request gain from Open()
commit9257d8a3f4e2c6a362cba550914215b22babad84
authorThomas Guillem <thomas@gllm.fr>
Thu, 26 Nov 2020 16:25:24 +0000 (26 17:25 +0100)
committerThomas Guillem <thomas@gllm.fr>
Mon, 30 Nov 2020 08:35:49 +0000 (30 09:35 +0100)
tree0d9ef287899b8506fd877f9c792cd659542f6773
parent30d647f78d40d0834f50e4b2702e00cdd275b00a
mmdevice: don't request gain from Open()

If "--volume-save" == false, then the volume is set from Open(),
therefore a gain is requested causing the vlc_mutex_assert() in
aout_GainNotify().

The gain should be notified from any aout callbacks, but not from the
Open().
modules/audio_output/mmdevice.c