Skip to content

Commit 46faf11

Browse files
authored
Can't play chaosradio.de mp3 URL #480
1 parent ea28787 commit 46faf11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Audio.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2955,7 +2955,9 @@ void Audio::processWebFile() {
29552955

29562956
// we have a webfile, read the file header first - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
29572957
if(m_controlCounter != 100){
2958-
InBuff.bytesWasRead(readAudioHeader(availableBytes));
2958+
if(InBuff.bufferFilled() > maxFrameSize){ // read the file header first
2959+
InBuff.bytesWasRead(readAudioHeader(InBuff.bufferFilled())); // #480
2960+
}
29592961
return;
29602962
}
29612963

0 commit comments

Comments
 (0)