summaryrefslogtreecommitdiffstats
path: root/src/pulsecore
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-09-01 22:18:01 +0200
committerLennart Poettering <lennart@poettering.net>2009-09-01 22:18:01 +0200
commitce6dff4ee0a3fe6e0339eb1f5d605caf8af3f989 (patch)
tree8ee1617a75481818b42b80b729724876b13bbdd5 /src/pulsecore
parentb245b547025945aeca3717f987db3dd152559138 (diff)
core: add missing sink_unref()
Diffstat (limited to 'src/pulsecore')
-rw-r--r--src/pulsecore/sink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index f5a6fc50..2362db8d 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -893,6 +893,8 @@ void pa_sink_render(pa_sink*s, size_t length, pa_memchunk *result) {
result->memblock = pa_memblock_ref(s->silence.memblock);
result->index = s->silence.index;
result->length = PA_MIN(s->silence.length, length);
+
+ pa_sink_unref(s);
return;
}
@@ -980,6 +982,7 @@ void pa_sink_render_into(pa_sink*s, pa_memchunk *target) {
if (s->thread_info.state == PA_SINK_SUSPENDED) {
pa_silence_memchunk(target, &s->sample_spec);
+ pa_sink_unref(s);
return;
}