diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-18 14:08:32 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-18 14:08:32 +0100 |
commit | c11b9e918fdf467647fdf38183236745f6d92279 (patch) | |
tree | 42172475f1e2f4fcc3449fca72c131f2e2c75e83 /src | |
parent | 39c8fde50099d46f5c1bb2f12900eae420f90637 (diff) | |
download | pa-sink-ctl-c11b9e918fdf467647fdf38183236745f6d92279.tar.gz pa-sink-ctl-c11b9e918fdf467647fdf38183236745f6d92279.tar.bz2 pa-sink-ctl-c11b9e918fdf467647fdf38183236745f6d92279.zip |
command: Minor cosmetic in volume_change
Diffstat (limited to 'src')
-rw-r--r-- | src/command.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/command.c b/src/command.c index b3d9d2b..c3f80fd 100644 --- a/src/command.c +++ b/src/command.c @@ -79,9 +79,9 @@ static void volume_change(struct context *ctx, gboolean volume_increment) { struct vol_ctl *ctl; - pa_operation *o; pa_cvolume volume; - pa_volume_t inc; + const pa_volume_t inc = 2 * PA_VOLUME_NORM / 100; + pa_operation *o; if (!ctx->context_ready) return; @@ -90,9 +90,8 @@ volume_change(struct context *ctx, gboolean volume_increment) if (!ctl) return; - volume = (pa_cvolume) { .channels = ctl->channels }; + volume.channels = ctl->channels; pa_cvolume_set(&volume, volume.channels, ctl->vol); - inc = 2 * PA_VOLUME_NORM / 100; if (volume_increment) if (PA_VOLUME_NORM > ctl->vol && |