diff options
| -rw-r--r-- | src/plugins/Input/mad/decodermadfactory.cpp | 3 | ||||
| -rw-r--r-- | src/qmmp/qmmpaudioengine.cpp | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/Input/mad/decodermadfactory.cpp b/src/plugins/Input/mad/decodermadfactory.cpp index e230b80c9..3e38cb4b0 100644 --- a/src/plugins/Input/mad/decodermadfactory.cpp +++ b/src/plugins/Input/mad/decodermadfactory.cpp @@ -64,9 +64,6 @@ bool DecoderMADFactory::canDecode(QIODevice *input) const if (input->peek(buf,sizeof(buf)) == sizeof(buf)) { - if(!memcmp(buf, "FLV", 3)) //skip flv files - return false; - struct mad_stream stream; struct mad_header header; int dec_res; diff --git a/src/qmmp/qmmpaudioengine.cpp b/src/qmmp/qmmpaudioengine.cpp index 778ebf13b..dc5c4462c 100644 --- a/src/qmmp/qmmpaudioengine.cpp +++ b/src/qmmp/qmmpaudioengine.cpp @@ -115,7 +115,7 @@ bool QmmpAudioEngine::enqueue(InputSource *source) factory = Decoder::findByPath(source->url()); if(!factory) factory = Decoder::findByMime(source->contentType()); - if(!factory && source->ioDevice()) + if(!factory && source->ioDevice() && source->url().contains("://")) //ignore content of local files factory = Decoder::findByContent(source->ioDevice()); if(!factory && source->url().contains("://")) factory = Decoder::findByProtocol(source->url().section("://",0,0)); |
