diff options
author | rbuj <[email protected]> | 2022-03-16 11:41:57 +0100 |
---|---|---|
committer | mbkma <[email protected]> | 2022-03-18 20:58:33 +0100 |
commit | d10b694e96758b221b03f3ac9e0f42ec75b02fb1 (patch) | |
tree | 93dac08ff1d7762da67f89affc8c845b0cbc0af4 /mate-volume-control/gvc-balance-bar.c | |
parent | cc7a4cfe09b8df0c8db4944e95130e6c42b68b7f (diff) | |
download | mate-media-d10b694e96758b221b03f3ac9e0f42ec75b02fb1.tar.bz2 mate-media-d10b694e96758b221b03f3ac9e0f42ec75b02fb1.tar.xz |
Fix warnings -Wfloat-conversion, -Wimplicit-float-conversion
Diffstat (limited to 'mate-volume-control/gvc-balance-bar.c')
-rw-r--r-- | mate-volume-control/gvc-balance-bar.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mate-volume-control/gvc-balance-bar.c b/mate-volume-control/gvc-balance-bar.c index e4fccb8..55918b7 100644 --- a/mate-volume-control/gvc-balance-bar.c +++ b/mate-volume-control/gvc-balance-bar.c @@ -482,15 +482,17 @@ on_adjustment_value_changed (GtkAdjustment *adjustment, GvcBalanceBar *bar) switch (bar->priv->btype) { case BALANCE_TYPE_RL: - mate_mixer_stream_control_set_balance (bar->priv->control, value); + mate_mixer_stream_control_set_balance (bar->priv->control, + (gfloat) value); break; case BALANCE_TYPE_FR: - mate_mixer_stream_control_set_fade (bar->priv->control, value); + mate_mixer_stream_control_set_fade (bar->priv->control, + (gfloat) value); break; case BALANCE_TYPE_LFE: mate_mixer_stream_control_set_channel_volume (bar->priv->control, - bar->priv->lfe_channel, - value); + bar->priv->lfe_channel, + (guint) value); break; } } |