device-restore: properly check save_muted flag when storing muted state
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Jun 2009 01:41:49 +0000 (03:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Jun 2009 01:41:49 +0000 (03:41 +0200)
src/modules/module-device-restore.c

index 5fa6f06..a2745b8 100644 (file)
@@ -226,7 +226,7 @@ static void subscribe_callback(pa_core *c, pa_subscription_event_type_t t, uint3
             entry.volume_valid = TRUE;
         }
 
-        if (sink->save_volume) {
+        if (sink->save_muted) {
             entry.muted = pa_sink_get_mute(sink, FALSE);
             entry.muted_valid = TRUE;
         }