diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-04-28 13:10:43 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-04-28 13:10:43 +0000 |
| commit | 86d896debe9f4a1d9465b06def8cc81c337d935a (patch) | |
| tree | dbeae1d6125325e4470e3e04f40b2f980a4e9e3c /src/plugins/Input/sid/sidhelper.cpp | |
| parent | 7681777e32a6c645c2d986f9f70f6de232ae00b1 (diff) | |
| download | qmmp-86d896debe9f4a1d9465b06def8cc81c337d935a.tar.gz qmmp-86d896debe9f4a1d9465b06def8cc81c337d935a.tar.bz2 qmmp-86d896debe9f4a1d9465b06def8cc81c337d935a.zip | |
sid plugin: song length db optimization
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3424 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/sid/sidhelper.cpp')
| -rw-r--r-- | src/plugins/Input/sid/sidhelper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/Input/sid/sidhelper.cpp b/src/plugins/Input/sid/sidhelper.cpp index bc6091d7d..bc1d7de91 100644 --- a/src/plugins/Input/sid/sidhelper.cpp +++ b/src/plugins/Input/sid/sidhelper.cpp @@ -22,10 +22,10 @@ #include <sidplayfp/SidDatabase.h> #include "sidhelper.h" -SIDHelper::SIDHelper() +SIDHelper::SIDHelper(SidDatabase *db) { m_tune = 0; - m_database.open("/home/user/.qmmp/Songlengths.txt"); + m_db = db; } SIDHelper::~SIDHelper() @@ -79,7 +79,7 @@ QList <FileInfo*> SIDHelper::createPlayList(bool meta) info->setMetaData(Qmmp::COMMENT, tune_info->commentString(0)); info->setMetaData(Qmmp::TRACK, i); } - int length = m_database.length(md5, i); + int length = m_db->length(md5, i); if(length > -1) info->setLength(length); |
