mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
core: add missing sink_unref()
This commit is contained in:
parent
b245b54702
commit
ce6dff4ee0
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue