From 895cb7440fb836b0d1d06938c945c5e9aa82fd8e Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sat, 8 Mar 2014 23:50:43 -0800 Subject: [PATCH] Fixed playptmod running indefinitely --- Plugins/playptmod/playptmod/ptmodDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/playptmod/playptmod/ptmodDecoder.m b/Plugins/playptmod/playptmod/ptmodDecoder.m index 01d1db892..089c4dd81 100755 --- a/Plugins/playptmod/playptmod/ptmodDecoder.m +++ b/Plugins/playptmod/playptmod/ptmodDecoder.m @@ -161,7 +161,7 @@ BOOL probe_length( unsigned long * intro_length, unsigned long * loop_length, in int total = 0; while ( total < frames ) { int framesToRender = 512; - if ( framesToRender > totalFrames - framesRead ) + if ( !repeat_one && framesToRender > totalFrames - framesRead ) framesToRender = (int)(totalFrames - framesRead); if ( framesToRender > frames - total ) framesToRender = frames - total;