mmdevice: skip if volume reset is enabled for now
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 26 Feb 2018 22:18:26 +0000 (00:18 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 26 Feb 2018 22:25:21 +0000 (00:25 +0200)
modules/audio_output/mmdevice.c

index 7314748..1943ad3 100644 (file)
@@ -1201,6 +1201,9 @@ static void Stop(audio_output_t *aout)
 
 static int Open(vlc_object_t *obj)
 {
+    if (!var_InheritBool(obj, "volume-save"))
+        return VLC_EGENERIC;
+
     audio_output_t *aout = (audio_output_t *)obj;
 
     aout_sys_t *sys = malloc(sizeof (*sys));