From 3d236fb0c60fd39610842036c447fa6a37ea987a Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 11 Nov 2012 16:02:21 +0000 Subject: fixed detection by content git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2989 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/decoder.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/qmmp/decoder.cpp b/src/qmmp/decoder.cpp index 4839672c0..2c6b9a469 100644 --- a/src/qmmp/decoder.cpp +++ b/src/qmmp/decoder.cpp @@ -185,7 +185,10 @@ DecoderFactory *Decoder::findByPath(const QString& source, bool useContent) //try last factory with stream based input or local files support if (fact && isEnabled(fact) && (!fact->properties().noInput || fact->properties().protocols.contains("file"))) - return fact; + { + if(fact->canDecode(&buffer)) + return fact; + } foreach(DecoderFactory *fact, *m_factories) { -- cgit v1.2.3-13-gbd6f