diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-28 12:33:19 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-28 12:33:19 +0000 |
| commit | 169bd7a28d76a1915bf32b7a3110e88260f748a4 (patch) | |
| tree | 003bc0a9a6c96d928b3d47434192d6b51e12c22e /lib/decoder.cpp | |
| parent | c6d40b3e63ef5af1c83546f41fde38c8f3983c8f (diff) | |
| download | qmmp-169bd7a28d76a1915bf32b7a3110e88260f748a4.tar.gz qmmp-169bd7a28d76a1915bf32b7a3110e88260f748a4.tar.bz2 qmmp-169bd7a28d76a1915bf32b7a3110e88260f748a4.zip | |
changed decoder API
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@41 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'lib/decoder.cpp')
| -rw-r--r-- | lib/decoder.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/decoder.cpp b/lib/decoder.cpp index 4b940520d..db10678cd 100644 --- a/lib/decoder.cpp +++ b/lib/decoder.cpp @@ -173,11 +173,10 @@ DecoderFactory *Decoder::findByContentType(const QString& type) { if (!blacklist.contains(files.at(i).section('/',-1))) { - QStringList types = factories->at(i)->contentTypes(); + QStringList types = factories->at(i)->contentType().split(";"); for(int j=0; j<types.size(); ++j) { - qDebug(qPrintable(types[j]+" "+type)); - if(type == types[j]) + if(type == types[j] && !types[j].isEmpty()) return factories->at(i); } } |
