diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/qmmp/recycler.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/qmmp/recycler.cpp b/src/qmmp/recycler.cpp index b5970cc24..4ac0cb640 100644 --- a/src/qmmp/recycler.cpp +++ b/src/qmmp/recycler.cpp @@ -83,15 +83,21 @@ Buffer *Recycler::next() void Recycler::done() { - done_index = ++done_index % buffer_count; + //done_index = ++done_index % buffer_count; if (current_count) + { current_count--; + done_index = ++done_index % buffer_count; + } + //scurrent_count--; } void Recycler::clear() { current_count = 0; + add_index = 0; + done_index = 0; } |
