sink-input: fix rewriting render memblockq when nothing should be rewound
authorGeorg Chini <georg@chini.tk>
Wed, 3 Jul 2019 10:32:50 +0000 (12:32 +0200)
committerArun Raghavan <arun@arunraghavan.net>
Wed, 3 Jul 2019 10:52:20 +0000 (10:52 +0000)
commit4c6bab435316768974b94573e3f67ea17f56e221
treedf44bda736009ace597d5e637519d5f950471a21
parent1240afabfa792c1a3ba2b766c9c7bc0b3aae4b0f
sink-input: fix rewriting render memblockq when nothing should be rewound

If process_rewind() is called with nbytes = 0, process_rewind() will
nevertheless request a rewrite of the render memblockq.

This patch fixes the problem by adding the render memblockq length to the
rewrite amount only if nbytes > 0.
src/pulsecore/sink-input.c