Commit 61368353 authored by Rafaël Carré's avatar Rafaël Carré

audiobargraph_a: fix counter wrapping

parent eaba76fb
......@@ -245,11 +245,9 @@ static block_t *DoWork( filter_t *p_filter, block_t *p_in_buf )
}
}
if (p_sys->counter > p_sys->bargraph_repetition*100)
if (++p_sys->counter > p_sys->bargraph_repetition*100)
p_sys->counter = 0;
p_sys->counter++;
return p_in_buf;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment