[vlc-commits] mmdevice: make --no-volume-save actually work
Rémi Denis-Courmont
git at videolan.org
Mon Apr 16 10:31:18 CEST 2018
vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 15 19:43:57 2018 +0300| [0bb9308a594831501b585fe93a6c80a61537324f] | committer: Thomas Guillem
mmdevice: make --no-volume-save actually work
(fixes #20291)
(cherry picked from commit 2c55748ea76bb97d43f41b3959fc0d6ab48cb0d1)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=0bb9308a594831501b585fe93a6c80a61537324f
---
modules/audio_output/mmdevice.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/audio_output/mmdevice.c b/modules/audio_output/mmdevice.c
index 70936bbec3..3a466bb354 100644
--- a/modules/audio_output/mmdevice.c
+++ b/modules/audio_output/mmdevice.c
@@ -1102,8 +1102,9 @@ static int aout_stream_Start(void *func, va_list ap)
aout_stream_t *s = va_arg(ap, aout_stream_t *);
audio_sample_format_t *fmt = va_arg(ap, audio_sample_format_t *);
HRESULT *hr = va_arg(ap, HRESULT *);
+ LPCGUID sid = var_InheritBool(s, "volume-save") ? &GUID_VLC_AUD_OUT : NULL;
- *hr = start(s, fmt, &GUID_VLC_AUD_OUT);
+ *hr = start(s, fmt, sid);
if (*hr == AUDCLNT_E_DEVICE_INVALIDATED)
return VLC_ETIMEOUT;
return SUCCEEDED(*hr) ? VLC_SUCCESS : VLC_EGENERIC;
More information about the vlc-commits
mailing list