diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-08-23 18:19:23 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-08-23 18:19:23 +0000 |
| commit | 0661e2522ecfe2b9bc2125b0cef23d787c0b56e8 (patch) | |
| tree | acfdf47a6d0287b6842a04314ebcb0de6985272c /src/plugins/Input/wavpack | |
| parent | abb8c72df21ffd84ed511a06daf0764dae607457 (diff) | |
| download | qmmp-0661e2522ecfe2b9bc2125b0cef23d787c0b56e8.tar.gz qmmp-0661e2522ecfe2b9bc2125b0cef23d787c0b56e8.tar.bz2 qmmp-0661e2522ecfe2b9bc2125b0cef23d787c0b56e8.zip | |
fixed cue parsing, fixed jack
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1152 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/wavpack')
| -rw-r--r-- | src/plugins/Input/wavpack/cueparser.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/Input/wavpack/cueparser.cpp b/src/plugins/Input/wavpack/cueparser.cpp index 1130639d1..f9cecf264 100644 --- a/src/plugins/Input/wavpack/cueparser.cpp +++ b/src/plugins/Input/wavpack/cueparser.cpp @@ -32,6 +32,7 @@ CUEParser::CUEParser(const QByteArray &array, const QString &fileName) textStream.setCodec("UTF-8"); m_filePath = fileName; QString artist; + bool skip_index = FALSE; while (!textStream.atEnd()) { QString line = textStream.readLine().trimmed(); @@ -66,13 +67,15 @@ CUEParser::CUEParser(const QByteArray &array, const QString &fileName) info.setMetaData(Qmmp::TRACK, words[1].toInt()); m_infoList << info; m_offsets << 0; + skip_index = FALSE; } else if (words[0] == "INDEX") { - if (m_infoList.isEmpty() || words[1] != "01") - continue; - m_infoList.last ().setLength(getLength(words[2])); - m_offsets.last() = getLength(words[2]); + if (m_infoList.isEmpty() || skip_index) + continue; + m_infoList.last ().setLength(getLength(words[2])); + m_offsets.last() = getLength(words[2]); + skip_index = (words[1] == "01"); //use 01 index only } else if (words[0] == "REM") { |
