mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
position-event-sounds: don't warn that loud about vpos/hpos out of range
This commit is contained in:
parent
cdbeac6b69
commit
add4cbf2f3
1 changed files with 3 additions and 2 deletions
|
|
@ -65,8 +65,9 @@ static int parse_pos(const char *pos, double *f) {
|
|||
}
|
||||
|
||||
if (*f < 0.0 || *f > 1.0) {
|
||||
pa_log_warn("Property hpos/vpos out of range %0.2f", *f);
|
||||
return -1;
|
||||
pa_log_debug("Property hpos/vpos out of range %0.2f", *f);
|
||||
|
||||
*f = PA_CLAMP(*f, 0.0, 1.0);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue