module-loopback: Prevent an infinite loop when rate adjusting is disabled
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Sat, 11 Dec 2010 11:05:30 +0000 (12:05 +0100)
committerColin Guthrie <cguthrie@mandriva.org>
Sun, 12 Dec 2010 20:30:36 +0000 (20:30 +0000)
src/modules/module-loopback.c

index 0695889..55716b2 100644 (file)
@@ -501,7 +501,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;
         }
     }