[MAD Decoder] Fix streamed MP3s not working

Due to a change designed to stop playback when the end of the file is
reached, which should not be checked for unseekable files, which are
web streams that only stop when the connection drops, or when the user
stops playback manually.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
xcode15
Christopher Snowhill 2022-07-11 19:41:06 -07:00
parent 7adaeb4dd0
commit 9462e9fb70
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@
}
} else {
// Past the end of the file.
if(totalFrames <= _framesDecoded) {
if([_source seekable] && totalFrames <= _framesDecoded) {
return YES;
}
}