aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/sid/sidhelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Input/sid/sidhelper.cpp')
-rw-r--r--src/plugins/Input/sid/sidhelper.cpp6
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);