projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16886bb
)
sink: Add missing curly braces
author
Tanu Kaskinen
<tanu.kaskinen@linux.intel.com>
Tue, 16 Jul 2013 10:58:47 +0000
(13:58 +0300)
committer
Tanu Kaskinen
<tanu.kaskinen@linux.intel.com>
Tue, 16 Jul 2013 11:01:06 +0000
(14:01 +0300)
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.
src/pulsecore/sink.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/sink.c
b/src/pulsecore/sink.c
index
902a537
..
3cdabd4
100644
(file)
--- a/
src/pulsecore/sink.c
+++ b/
src/pulsecore/sink.c
@@
-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;