diff options
author | Jochen Keil <jochen.keil@gmail.com> | 2009-03-31 22:06:28 +0200 |
---|---|---|
committer | Jochen Keil <jochen.keil@gmail.com> | 2009-03-31 22:17:56 +0200 |
commit | d7b0c768b02f78730830e167e96861b8b059cfa7 (patch) | |
tree | 66ac4eceeda7ec1f6d79aa698ba3acd085559d17 /src/decoder/flac_plugin.c | |
parent | 6720a0a9404171fba2de86d247c3d7ed0174cbd4 (diff) | |
download | mpd-d7b0c768b02f78730830e167e96861b8b059cfa7.tar.gz mpd-d7b0c768b02f78730830e167e96861b8b059cfa7.tar.xz mpd-d7b0c768b02f78730830e167e96861b8b059cfa7.zip |
track length is computed correctly now
Diffstat (limited to 'src/decoder/flac_plugin.c')
-rw-r--r-- | src/decoder/flac_plugin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c index ec1fd01ef..603225bfd 100644 --- a/src/decoder/flac_plugin.c +++ b/src/decoder/flac_plugin.c @@ -324,10 +324,9 @@ flac_cue_tag_load(const char *file) if (cs->data.cue_sheet.tracks != NULL && (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; } - FLAC__metadata_object_delete(cs); } |