mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-09 08:21:08 -04:00
Fix compilation with -Werror=float-conversion
Better make the conversions explicit so that we don't get any surprises. Fixes #4065
This commit is contained in:
parent
50870aac57
commit
1ae4374ccf
71 changed files with 286 additions and 284 deletions
|
|
@ -1147,7 +1147,7 @@ static int element_set_volume(pa_alsa_element *e, snd_mixer_t *m, const pa_chann
|
|||
int rounding;
|
||||
|
||||
if (e->volume_limit >= 0 && value > (e->max_dB * 100))
|
||||
value = e->max_dB * 100;
|
||||
value = (long) (e->max_dB * 100);
|
||||
|
||||
if (e->direction == PA_ALSA_DIRECTION_OUTPUT) {
|
||||
/* If we call set_playback_volume() without checking first
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue