[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
parent
fc1a226791
commit
67f05bad27
|
@ -499,7 +499,7 @@
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Past the end of the file.
|
// Past the end of the file.
|
||||||
if(totalFrames <= _framesDecoded) {
|
if([_source seekable] && totalFrames <= _framesDecoded) {
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue