[vlc-commits] mmdevice: use var_GetBool()
Thomas Guillem
git at videolan.org
Thu Mar 1 10:29:04 CET 2018
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 1 10:27:14 2018 +0100| [9e21eb10e370bac4381ae80eae38e8c9f6e5fd18] | committer: Thomas Guillem
mmdevice: use var_GetBool()
Since the variable is created from Open().
(cherry picked from commit 08ac75c985887ad033b415de609c8e0c1f2428ab)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=9e21eb10e370bac4381ae80eae38e8c9f6e5fd18
---
modules/audio_output/mmdevice.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/audio_output/mmdevice.c b/modules/audio_output/mmdevice.c
index 1bad48cb60..70936bbec3 100644
--- a/modules/audio_output/mmdevice.c
+++ b/modules/audio_output/mmdevice.c
@@ -890,8 +890,7 @@ static HRESULT MMSession(audio_output_t *aout, IMMDeviceEnumerator *it)
manager = pv;
if (SUCCEEDED(hr))
{
- LPCGUID guid = var_InheritBool(aout, "volume-save") ? &GUID_VLC_AUD_OUT
- : NULL;
+ LPCGUID guid = var_GetBool(aout, "volume-save") ? &GUID_VLC_AUD_OUT : NULL;
/* Register session control */
hr = IAudioSessionManager_GetAudioSessionControl(manager, guid, 0,
More information about the vlc-commits
mailing list