[xiph-commits] r15293 - trunk/cdparanoia
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Thu Sep 11 04:28:13 PDT 2008
Author: xiphmont
Date: 2008-09-11 04:28:13 -0700 (Thu, 11 Sep 2008)
New Revision: 15293
Modified:
trunk/cdparanoia/cachetest.c
Log:
Improvement (robustification) to cachegran test
Modified: trunk/cdparanoia/cachetest.c
===================================================================
--- trunk/cdparanoia/cachetest.c 2008-09-11 11:22:25 UTC (rev 15292)
+++ trunk/cdparanoia/cachetest.c 2008-09-11 11:28:13 UTC (rev 15293)
@@ -632,7 +632,7 @@
while(1){
cachegran=cachesize+1;
- for(i=0;i<10 && cachegran;i++){
+ for(i=0;i<10 && cachegran;){
int sofar=0,ret,retry=0;
logC("\n\t\t>>> ");
printC(".");
@@ -659,7 +659,12 @@
if(ret<=0)break;
logC("%d:%d:%d ",offset+sofar,ret,x);
if(x>=MIN_SEEK_MS){
- cachegran=sofar+1;
+ if(cachegran == sofar+1){
+ i++;
+ }else{
+ cachegran=sofar+1;
+ i=0;
+ }
break;
}
cachegran=sofar;
More information about the commits
mailing list