mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
volume: when passing NULL as channel map to pa_cvolume_scale_mask() handle this the same way as pa_cvolume_scale()
This commit is contained in:
parent
9755bfa58a
commit
d000dd6f4b
1 changed files with 5 additions and 1 deletions
|
|
@ -707,7 +707,11 @@ pa_cvolume* pa_cvolume_scale_mask(pa_cvolume *v, pa_volume_t max, pa_channel_map
|
||||||
|
|
||||||
pa_assert(v);
|
pa_assert(v);
|
||||||
|
|
||||||
pa_return_val_if_fail(max != (pa_volume_t) -1, NULL);
|
pa_return_val_if_fail(max != PA_VOLUME_INVALID, NULL);
|
||||||
|
|
||||||
|
if (!cm)
|
||||||
|
return pa_cvolume_scale(v, max);
|
||||||
|
|
||||||
pa_return_val_if_fail(pa_cvolume_compatible_with_channel_map(v, cm), NULL);
|
pa_return_val_if_fail(pa_cvolume_compatible_with_channel_map(v, cm), NULL);
|
||||||
|
|
||||||
t = pa_cvolume_max_mask(v, cm, mask);
|
t = pa_cvolume_max_mask(v, cm, mask);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue