summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>2010-12-11 12:05:30 +0100
committerColin Guthrie <cguthrie@mandriva.org>2010-12-12 20:32:28 +0000
commit3e6af0749635ed8fafef5850483f8a6cbbd47840 (patch)
tree8728a13daafb3748b997c459d8cc7eb953d5ef02
parent205cad6eed59c3ab110d03620de42a5e85d7a651 (diff)
module-loopback: Prevent an infinite loop when rate adjusting is disabled
-rw-r--r--src/modules/module-loopback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c
index 15ef96ef..265a469f 100644
--- a/src/modules/module-loopback.c
+++ b/src/modules/module-loopback.c
@@ -493,7 +493,8 @@ static int sink_input_process_msg_cb(pa_msgobject *obj, int code, void *data, in
pa_assert_ctl_context();
- adjust_rates(u);
+ if (u->adjust_time > 0)
+ adjust_rates(u);
return 0;
}
}