position-event-sounds: don't warn that loud about vpos/hpos out of range

This commit is contained in:
Lennart Poettering 2009-09-17 02:04:59 +02:00
parent cdbeac6b69
commit add4cbf2f3

View file

@ -65,8 +65,9 @@ static int parse_pos(const char *pos, double *f) {
} }
if (*f < 0.0 || *f > 1.0) { if (*f < 0.0 || *f > 1.0) {
pa_log_warn("Property hpos/vpos out of range %0.2f", *f); pa_log_debug("Property hpos/vpos out of range %0.2f", *f);
return -1;
*f = PA_CLAMP(*f, 0.0, 1.0);
} }
return 0; return 0;