Mercurial > hg > xmms-sid
comparison src/xs_length.c @ 40:1788f4ce6a44
Numerous changes towards 0.8
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 19 Jun 2003 22:38:01 +0000 |
parents | 85a7753e2a9a |
children | 6a3ce7260ae1 |
comparison
equal
deleted
inserted
replaced
39:85a7753e2a9a | 40:1788f4ce6a44 |
---|---|
569 dbEntry = xs_db_get(dbHash); | 569 dbEntry = xs_db_get(dbHash); |
570 | 570 |
571 if (dbEntry) | 571 if (dbEntry) |
572 { | 572 { |
573 if ((subTune >= 0) && (subTune < dbEntry->nLengths)) | 573 if ((subTune >= 0) && (subTune < dbEntry->nLengths)) |
574 iResult = dbEntry->sLengths[subTune]; | 574 iResult = dbEntry->sLengths[subTune - 1]; |
575 } | 575 } |
576 } | 576 } |
577 } | 577 } |
578 | 578 |
579 /* Check for max playtime */ | 579 // XSDEBUG("fname='%s', sub=%i, res=%i\n", fileName, subTune, iResult); |
580 if ((iResult == -1) && xs_cfg.playMaxTimeEnable) | |
581 iResult = xs_cfg.playMaxTime; | |
582 | |
583 XSDEBUG("fname='%s', sub=%i, res=%i\n", fileName, subTune, iResult); | |
584 | 580 |
585 return iResult; | 581 return iResult; |
586 } | 582 } |
587 | 583 |
588 | 584 |