]> code.delx.au - pulseaudio/commitdiff
sink-input: Remove redundant check in pa_sink_input_request_rewind().
authorFlavio Ceolin <flavio.ceolin@profusion.mobi>
Tue, 4 Sep 2012 14:28:38 +0000 (11:28 -0300)
committerTanu Kaskinen <tanuk@iki.fi>
Sun, 16 Sep 2012 06:47:43 +0000 (09:47 +0300)
This bug is part of the problems spotted by Tanu.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=53923
src/pulsecore/sink-input.c

index 93887881f8e32bdaf61959ce979a082cedc49be4..7a7575a98c3d506af3139e747bf662d02a28abf5 100644 (file)
@@ -1963,8 +1963,7 @@ void pa_sink_input_request_rewind(
     }
 
     i->thread_info.rewrite_flush =
-        i->thread_info.rewrite_flush ||
-        (flush && i->thread_info.rewrite_nbytes != 0);
+        i->thread_info.rewrite_flush || flush;
 
     i->thread_info.dont_rewind_render =
         i->thread_info.dont_rewind_render ||