diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-09-17 02:04:59 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-09-17 02:04:59 +0200 |
commit | add4cbf2f3e40131c03318d76c4c1e5208025ddc (patch) | |
tree | 5dd56a22b31e68eede3f9390e10e2e023ff1688e | |
parent | cdbeac6b6961b5e071250f539b7011efe65ef513 (diff) |
position-event-sounds: don't warn that loud about vpos/hpos out of range
-rw-r--r-- | src/modules/module-position-event-sounds.c | 5 |
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; |