Unified · Split
| @@ -289,7 +289,7 @@ static void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__St · 288 unmodified lines | |||
| 289 | } | 289 | } |
| 290 | else if (length > 10 && !memcmp(tag, "LOOPSTART=", 10)) | 290 | else if (length > 10 && !memcmp(tag, "LOOPSTART=", 10)) |
| 291 | { | 291 | { |
| 292 | loopLength = atoi(&tag[10]); | 292 | loopStart = atoi(&tag[10]); |
| 293 | } | 293 | } |
| 294 | else if (length > 11 && !memcmp(tag, "LOOPLENGTH=", 11)) | 294 | else if (length > 11 && !memcmp(tag, "LOOPLENGTH=", 11)) |
| 295 | { | 295 | { |
| @@ -298,8 +298,8 @@ static void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__St · 2 unmodified lines | |||
| 298 | 298 | ||
| 299 | if (loopLength > 0) | 299 | if (loopLength > 0) |
| 300 | { | 300 | { |
| 301 | s->loopStart = loopLength; | 301 | s->loopStart = loopStart; |
| 302 | s->loopLength = loopStart; | 302 | s->loopLength = loopLength; |
| 303 | 303 | ||
| 304 | DISABLE_LOOP(s->flags); | 304 | DISABLE_LOOP(s->flags); |
| 305 | s->flags |= LOOP_FWD; | 305 | s->flags |= LOOP_FWD; |