mmdevice: handle AUDCLNT_E_ALREADY_INITIALIZED
authorThomas Guillem <thomas@gllm.fr>
Wed, 5 Jul 2017 16:38:03 +0000 (18:38 +0200)
committerThomas Guillem <thomas@gllm.fr>
Tue, 11 Jul 2017 13:20:09 +0000 (15:20 +0200)
commitc29a8e972c265aace56b086580cd62dc39f10305
tree34223ecfd798d466b672d9b26ffc9033af733b83
parente7fb6b2605ede9d2d6a9d36885614119e062a27a
mmdevice: handle AUDCLNT_E_ALREADY_INITIALIZED

Sadly, this error can happen even if the "aout stream" was well stopped. See
MSDN comments in the commit.

Add DeviceRestartLocked() that fetch a new instance of the current IMMDevice.
modules/audio_output/mmdevice.c