projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b245b54
)
core: add missing sink_unref()
author
Lennart Poettering
<lennart@poettering.net>
Tue, 1 Sep 2009 20:18:01 +0000
(22:18 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 1 Sep 2009 20:18:01 +0000
(22:18 +0200)
src/pulsecore/sink.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/sink.c
b/src/pulsecore/sink.c
index
f5a6fc5
..
2362db8
100644
(file)
--- 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;
}