Last fix of mpg123 plugin made some mp3 unable to play.

This commit is contained in:
Daniel Önnerby 2009-01-05 13:22:24 +00:00
parent 1ccfa6ac31
commit 0b0971de56

View File

@ -216,10 +216,10 @@ bool MP3Decoder::Open(musik::core::filestreams::IFileStream *fileStream){
bool continueFeed(true);
// Loop until we have a format
int maxLoops(256); //
int maxLoops(0); //
while(continueFeed){
continueFeed = continueFeed && this->Feed() && maxLoops>0;
--maxLoops;
continueFeed = continueFeed && this->Feed() && !this->fileStream->Eof();
++maxLoops;
if(continueFeed){
if(mpg123_getformat(this->decoder,&this->cachedRate,&this->cachedChannels,&encoding)==MPG123_OK){
continueFeed = (this->cachedRate==0);