diff --git a/Plugins/vgmstream/vgmstream/VGMDecoder.m b/Plugins/vgmstream/vgmstream/VGMDecoder.m index 8bbb6a668..d83f60b1b 100644 --- a/Plugins/vgmstream/vgmstream/VGMDecoder.m +++ b/Plugins/vgmstream/vgmstream/VGMDecoder.m @@ -61,7 +61,9 @@ { BOOL repeatone = IsRepeatOneSet(); - if (!repeatone) { + BOOL loopokay = repeatone && stream->loop_flag; + + if (!loopokay) { if (framesRead >= totalFrames) return 0; else if (framesRead + frames > totalFrames) frames = (UInt32)(totalFrames - framesRead);