From 9462e9fb70022dd025574837e611c154a49bf5a0 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 11 Jul 2022 19:41:06 -0700 Subject: [PATCH] [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 --- Plugins/MAD/MADDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/MAD/MADDecoder.m b/Plugins/MAD/MADDecoder.m index 44914feb7..b0a3d1cdd 100644 --- a/Plugins/MAD/MADDecoder.m +++ b/Plugins/MAD/MADDecoder.m @@ -499,7 +499,7 @@ } } else { // Past the end of the file. - if(totalFrames <= _framesDecoded) { + if([_source seekable] && totalFrames <= _framesDecoded) { return YES; } }