From fc72d36e99a63fe18b4df2f51325a9e6617ee5bd Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 23 Jan 2010 12:52:41 +0000 Subject: fixed seeking git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1525 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/recycler.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3-13-gbd6f