]> code.delx.au - pulseaudio/blobdiff - src/modules/module-null-sink.c
fix the ever-popular 'the the' typo
[pulseaudio] / src / modules / module-null-sink.c
index 09e6ab72c835fb15d781c933cbe5e13ac638cf20..f40546a8ac7a09643e81a5fd795bf35da4e3a072 100644 (file)
@@ -31,8 +31,8 @@
 #include <pulse/rtclock.h>
 #include <pulse/timeval.h>
 #include <pulse/xmalloc.h>
-#include <pulse/i18n.h>
 
+#include <pulsecore/i18n.h>
 #include <pulsecore/macro.h>
 #include <pulsecore/sink.h>
 #include <pulsecore/module.h>
@@ -176,7 +176,7 @@ static void process_render(struct userdata *u, pa_usec_t now) {
     queued. Hence: at maximum read this many bytes from the sink
     inputs. */
 
-    /* Fill the buffer up the the latency size */
+    /* Fill the buffer up the latency size */
     while (u->timestamp < now + u->block_usec) {
         pa_memchunk chunk;
 
@@ -315,6 +315,8 @@ int pa__init(pa_module*m) {
         goto fail;
     }
 
+    pa_sink_set_latency_range(u->sink, 0, BLOCK_USEC);
+
     pa_sink_put(u->sink);
 
     pa_modargs_free(ma);