From a4abbd0ec99e7cd212e0571f0314f5d00213c912 Mon Sep 17 00:00:00 2001 From: halleyscometsw Date: Sat, 17 May 2008 01:19:17 +0000 Subject: [PATCH] don't play unlooped tracks forever git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@141 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- winamp/in_vgmstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winamp/in_vgmstream.c b/winamp/in_vgmstream.c index 0bfac343..7391f5ae 100644 --- a/winamp/in_vgmstream.c +++ b/winamp/in_vgmstream.c @@ -352,7 +352,7 @@ DWORD WINAPI __stdcall decode(void *arg) { int samples_to_do; int l; - if (decode_pos_samples+576>stream_length_samples && !loop_forever) + if (decode_pos_samples+576>stream_length_samples && (!loop_forever || !vgmstream->loop_flag)) samples_to_do=stream_length_samples-decode_pos_samples; else samples_to_do=576;