aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-01-23 12:52:41 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2010-01-23 12:52:41 +0000
commitfc72d36e99a63fe18b4df2f51325a9e6617ee5bd (patch)
treef40e85af1034888f8bb757931950c33960ad7044
parentfe909604f007b30b1aa0388c35cfeb514d066589 (diff)
downloadqmmp-fc72d36e99a63fe18b4df2f51325a9e6617ee5bd.tar.gz
qmmp-fc72d36e99a63fe18b4df2f51325a9e6617ee5bd.tar.bz2
qmmp-fc72d36e99a63fe18b4df2f51325a9e6617ee5bd.zip
fixed seeking
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1525 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/qmmp/recycler.cpp8
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;
}