[vlc-commits] mmdevice: fix ToCToU between Open() and MMSession()
Rémi Denis-Courmont
git at videolan.org
Wed Feb 28 19:12:15 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 28 20:10:24 2018 +0200| [1d43675e3724443dee959624c791d51354b8ffef] | committer: Rémi Denis-Courmont
mmdevice: fix ToCToU between Open() and MMSession()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1d43675e3724443dee959624c791d51354b8ffef
---
modules/audio_output/mmdevice.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_output/mmdevice.c b/modules/audio_output/mmdevice.c
index 443c7764bc..5d0a339141 100644
--- a/modules/audio_output/mmdevice.c
+++ b/modules/audio_output/mmdevice.c
@@ -1270,7 +1270,7 @@ static int Open(vlc_object_t *obj)
sys->acquired_device = NULL;
sys->request_device_restart = false;
- if (!var_InheritBool(aout, "volume-save"))
+ if (!var_CreateGetBool(aout, "volume-save"))
VolumeSetLocked(aout, var_InheritFloat(aout, "mmdevice-volume"));
InitializeCriticalSection(&sys->lock);
More information about the vlc-commits
mailing list