commit b3e8a14835bcf111e7778db2c5cf21a4ef7dcd44
parent fdcc53f651378abc003591a8e2371af7d6b393a1
Author: Olav Sørensen <olav.sorensen@live.no>
Date: Fri, 12 May 2023 19:07:48 +0200
Don't ask...
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/smploaders/ft2_load_flac.c b/src/smploaders/ft2_load_flac.c
@@ -289,7 +289,7 @@ static void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__St
}
else if (length > 10 && !memcmp(tag, "LOOPSTART=", 10))
{
- loopLength = atoi(&tag[10]);
+ loopStart = atoi(&tag[10]);
}
else if (length > 11 && !memcmp(tag, "LOOPLENGTH=", 11))
{
@@ -298,8 +298,8 @@ static void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__St
if (loopLength > 0)
{
- s->loopStart = loopLength;
- s->loopLength = loopStart;
+ s->loopStart = loopStart;
+ s->loopLength = loopLength;
DISABLE_LOOP(s->flags);
s->flags |= LOOP_FWD;