mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-01 17:58:29 +00:00
Last fix of mpg123 plugin made some mp3 unable to play.
This commit is contained in:
parent
1ccfa6ac31
commit
0b0971de56
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user