[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>
main
Christopher Snowhill 2022-07-11 19:41:06 -07:00
parent fc1a226791
commit 67f05bad27
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;
}
}