diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-09-19 19:24:08 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-09-19 19:24:08 +0200 |
commit | c91336dce1435e09a980d7a8838fa93658cd5ded (patch) | |
tree | dc9afdbb3213c093d070a6fefe838f758739693b | |
parent | 95ead1f32fc3d02c11a58bf67be16f93c06c0682 (diff) |
Fixed parsing of time attribute in cuesheets.
-rw-r--r-- | cuesheet.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cuesheet.cpp b/cuesheet.cpp index c023ca0..5793206 100644 --- a/cuesheet.cpp +++ b/cuesheet.cpp @@ -43,7 +43,7 @@ CueSheet::CueSheet(const QString& filename) { QString s; line >> n >> s; QStringList l = s.split(':'); - index = l[0].toInt() * 60 * 100 + l[1].toInt() * 100 + l[2].toInt(); + index = l[0].toInt() * 60 * 1000 + l[1].toInt() * 1000 + l[2].toInt() * 1000 / 75; } } if(track) { @@ -53,6 +53,7 @@ CueSheet::CueSheet(const QString& filename) { album_artist = artist; album_name = name; } + f.close(); } const QString& CueSheet::artist() const { |