summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pulsecore/play-memchunk.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pulsecore/play-memchunk.c b/src/pulsecore/play-memchunk.c
index d2d71804..f2925d1b 100644
--- a/src/pulsecore/play-memchunk.c
+++ b/src/pulsecore/play-memchunk.c
@@ -63,7 +63,6 @@ static void memchunk_stream_unlink(memchunk_stream *u) {
pa_sink_input_unref(u->sink_input);
u->sink_input = NULL;
- /* Make sure we don't decrease the ref count twice. */
memchunk_stream_unref(u);
}
@@ -160,7 +159,6 @@ int pa_play_memchunk(
u->parent.parent.free = memchunk_stream_free;
u->parent.process_msg = memchunk_stream_process_msg;
u->core = sink->core;
- u->sink_input = NULL;
u->memchunk = *chunk;
pa_memblock_ref(u->memchunk.memblock);