diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-07-26 08:44:05 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-07-26 08:44:05 +0000 |
| commit | 62904593cc27e86a32aa07f43108a160ec52371d (patch) | |
| tree | da240824c9f42cb3164673016b1cf2c85bdeb08c /src/plugins/Input/cue | |
| parent | 411581182475289ad1ec80dac8d41d71c2eefb38 (diff) | |
| download | qmmp-62904593cc27e86a32aa07f43108a160ec52371d.tar.gz qmmp-62904593cc27e86a32aa07f43108a160ec52371d.tar.bz2 qmmp-62904593cc27e86a32aa07f43108a160ec52371d.zip | |
using DecodeFactory::properties() for factory search
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6602 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/cue')
| -rw-r--r-- | src/plugins/Input/cue/cueparser.cpp | 4 | ||||
| -rw-r--r-- | src/plugins/Input/cue/decoder_cue.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/Input/cue/cueparser.cpp b/src/plugins/Input/cue/cueparser.cpp index 7383e4111..893d0627f 100644 --- a/src/plugins/Input/cue/cueparser.cpp +++ b/src/plugins/Input/cue/cueparser.cpp @@ -307,7 +307,7 @@ qint64 CUEParser::getLength(const QString &str) QString CUEParser::getDirtyPath(const QString &cue_path, const QString &path) { - if((QFile::exists(path) && Decoder::findByPath(path)) || !m_dirty) + if((QFile::exists(path) && Decoder::findByFilePath(path)) || !m_dirty) return path; QStringList candidates; @@ -316,7 +316,7 @@ QString CUEParser::getDirtyPath(const QString &cue_path, const QString &path) { it.next(); QString f = it.filePath(); - if ((f != cue_path) && Decoder::findByPath(f)) + if ((f != cue_path) && Decoder::findByFilePath(f)) candidates.push_back(f); } diff --git a/src/plugins/Input/cue/decoder_cue.cpp b/src/plugins/Input/cue/decoder_cue.cpp index 141317fb4..29853ea2a 100644 --- a/src/plugins/Input/cue/decoder_cue.cpp +++ b/src/plugins/Input/cue/decoder_cue.cpp @@ -71,7 +71,7 @@ bool DecoderCUE::initialize() qWarning("DecoderCUE: file \"%s\" doesn't exist", qPrintable(m_path)); return false; } - DecoderFactory *df = Decoder::findByPath(m_path); + DecoderFactory *df = Decoder::findByFilePath(m_path); if (!df) { qWarning("DecoderCUE: unsupported file format"); |
