#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"
}
/* 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) {
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);