aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorJochen Keil <jochen.keil@gmail.com>2009-03-31 22:06:28 +0200
committerJochen Keil <jochen.keil@gmail.com>2009-03-31 22:17:56 +0200
commitd7b0c768b02f78730830e167e96861b8b059cfa7 (patch)
tree66ac4eceeda7ec1f6d79aa698ba3acd085559d17 /src/decoder
parent6720a0a9404171fba2de86d247c3d7ed0174cbd4 (diff)
downloadmpd-d7b0c768b02f78730830e167e96861b8b059cfa7.tar.gz
mpd-d7b0c768b02f78730830e167e96861b8b059cfa7.tar.xz
mpd-d7b0c768b02f78730830e167e96861b8b059cfa7.zip
track length is computed correctly now
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/flac_plugin.c3
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);
}