[vlc-commits] mmdevice: use var_GetBool()
Thomas Guillem
git at videolan.org
Thu Mar 1 10:27:40 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 1 10:27:14 2018 +0100| [08ac75c985887ad033b415de609c8e0c1f2428ab] | committer: Thomas Guillem
mmdevice: use var_GetBool()
Since the variable is created from Open().
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=08ac75c985887ad033b415de609c8e0c1f2428ab
---
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 37a78a051a..f2aa323eea 100644
--- a/modules/audio_output/mmdevice.c
+++ b/modules/audio_output/mmdevice.c
@@ -884,8 +884,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