mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
sink: Add missing curly braces
The missing braces didn't cause any practical problems, but obviously the intention was to reset the chunk only if the memblock was non-NULL.
This commit is contained in:
parent
16886bbf87
commit
afb2c8f9e3
1 changed files with 2 additions and 1 deletions
|
|
@ -1106,9 +1106,10 @@ static void inputs_drop(pa_sink *s, pa_mix_info *info, unsigned n, pa_memchunk *
|
|||
}
|
||||
|
||||
if (m) {
|
||||
if (m->chunk.memblock)
|
||||
if (m->chunk.memblock) {
|
||||
pa_memblock_unref(m->chunk.memblock);
|
||||
pa_memchunk_reset(&m->chunk);
|
||||
}
|
||||
|
||||
pa_sink_input_unref(m->userdata);
|
||||
m->userdata = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue