]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/play-memblockq.c
fix the ever-popular 'the the' typo
[pulseaudio] / src / pulsecore / play-memblockq.c
index 66e47ea491c2e879c1ba07c9134cc6222825ff59..2ce92e50d057cb5201d355ef61a183e63617d60e 100644 (file)
 
 #include <stdlib.h>
 #include <stdio.h>
-#include <string.h>
 
 #include <pulse/xmalloc.h>
-#include <pulse/gccmacro.h>
 
 #include <pulsecore/sink-input.h>
 #include <pulsecore/thread-mq.h>
-#include <pulsecore/sample-util.h>
 
 #include "play-memblockq.h"
 
@@ -136,7 +133,7 @@ static int sink_input_pop_cb(pa_sink_input *i, size_t nbytes, pa_memchunk *chunk
     }
 
     /* If there's no memblock, there's going to be data in the memblockq after
-     * a gap with length chunk->length. Drop the the gap and peek the actual
+     * a gap with length chunk->length. Drop the gap and peek the actual
      * data. There should always be some data coming - hence the assert. The
      * gap will occur if the memblockq is rewound beyond index 0.*/
     if (!chunk->memblock) {
@@ -202,7 +199,7 @@ pa_sink_input* pa_memblockq_sink_input_new(
     u->memblockq = NULL;
 
     pa_sink_input_new_data_init(&data);
-    data.sink = sink;
+    pa_sink_input_new_data_set_sink(&data, sink, FALSE);
     data.driver = __FILE__;
     pa_sink_input_new_data_set_sample_spec(&data, ss);
     pa_sink_input_new_data_set_channel_map(&data, map);