summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-09-17 02:04:59 +0200
committerLennart Poettering <lennart@poettering.net>2009-09-17 02:04:59 +0200
commitadd4cbf2f3e40131c03318d76c4c1e5208025ddc (patch)
tree5dd56a22b31e68eede3f9390e10e2e023ff1688e
parentcdbeac6b6961b5e071250f539b7011efe65ef513 (diff)
position-event-sounds: don't warn that loud about vpos/hpos out of range
-rw-r--r--src/modules/module-position-event-sounds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/module-position-event-sounds.c b/src/modules/module-position-event-sounds.c
index fa8f73d8..7221b14f 100644
--- a/src/modules/module-position-event-sounds.c
+++ b/src/modules/module-position-event-sounds.c
@@ -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;