]> code.delx.au - pulseaudio/blobdiff - src/modules/module-mmkbd-evdev.c
pass force_refresh=FALSE to all volume/mute read invocations
[pulseaudio] / src / modules / module-mmkbd-evdev.c
index 3f012b7fc7526e51cbe14cabbe1520dbdca16a46..21f176a4b3e7cdbb4640aec67b9f6d47cea00b4f 100644 (file)
@@ -113,7 +113,7 @@ static void io_callback(pa_mainloop_api *io, pa_io_event *e, int fd, pa_io_event
                     pa_log("Failed to get sink '%s'", u->sink_name);
                 else {
                     int i;
-                    pa_cvolume cv = *pa_sink_get_volume(s);
+                    pa_cvolume cv = *pa_sink_get_volume(s, FALSE);
 
 #define DELTA (PA_VOLUME_NORM/20)
 
@@ -142,7 +142,7 @@ static void io_callback(pa_mainloop_api *io, pa_io_event *e, int fd, pa_io_event
 
                         case MUTE_TOGGLE:
 
-                            pa_sink_set_mute(s, !pa_sink_get_mute(s));
+                            pa_sink_set_mute(s, !pa_sink_get_mute(s, FALSE));
                             break;
 
                         case INVALID: