From c91336dce1435e09a980d7a8838fa93658cd5ded Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 19 Sep 2010 19:24:08 +0200 Subject: Fixed parsing of time attribute in cuesheets. --- cuesheet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3