track length is computed correctly now
This commit is contained in:
parent
6720a0a940
commit
d7b0c768b0
@ -324,10 +324,9 @@ flac_cue_tag_load(const char *file)
|
|||||||
if (cs->data.cue_sheet.tracks != NULL
|
if (cs->data.cue_sheet.tracks != NULL
|
||||||
&& (tnum <= cs->data.cue_sheet.num_tracks - 1))
|
&& (tnum <= cs->data.cue_sheet.num_tracks - 1))
|
||||||
{
|
{
|
||||||
track_time = cs->data.cue_sheet.tracks[tnum].offset - 1
|
track_time = cs->data.cue_sheet.tracks[tnum].offset
|
||||||
- cs->data.cue_sheet.tracks[tnum - 1].offset;
|
- cs->data.cue_sheet.tracks[tnum - 1].offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
FLAC__metadata_object_delete(cs);
|
FLAC__metadata_object_delete(cs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user