From 0b0971de56cc4e4d9b629042e7b67cb651f55710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C3=96nnerby?= Date: Mon, 5 Jan 2009 13:22:24 +0000 Subject: [PATCH] Last fix of mpg123 plugin made some mp3 unable to play. --- src/contrib/mpg123decoder/MP3Decoder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/contrib/mpg123decoder/MP3Decoder.cpp b/src/contrib/mpg123decoder/MP3Decoder.cpp index a86fa62b0..d75a21f1a 100644 --- a/src/contrib/mpg123decoder/MP3Decoder.cpp +++ b/src/contrib/mpg123decoder/MP3Decoder.cpp @@ -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);