From 45b203105b980162549fc97106c6353a23571106 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 26 Jul 2016 08:58:59 +0000 Subject: removed function DecoderFactory::supports git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6603 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.cpp | 11 ----------- src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.h | 3 +-- 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'src/plugins/Input/ffmpeg_legacy') diff --git a/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.cpp b/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.cpp index 6a278da43..f6b1f7c2d 100644 --- a/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.cpp +++ b/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.cpp @@ -39,17 +39,6 @@ extern "C"{ // DecoderFFmpegFactory -bool DecoderFFmpegFactory::supports(const QString &source) const -{ - foreach(QString filter, properties().filters) - { - QRegExp regexp(filter, Qt::CaseInsensitive, QRegExp::Wildcard); - if (regexp.exactMatch(source)) - return true; - } - return false; -} - bool DecoderFFmpegFactory::canDecode(QIODevice *i) const { av_register_all(); diff --git a/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.h b/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.h index c4b9b7a1a..030be2888 100644 --- a/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.h +++ b/src/plugins/Input/ffmpeg_legacy/decoderffmpegfactory.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2015 by Ilya Kotov * + * Copyright (C) 2006-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -37,7 +37,6 @@ Q_OBJECT Q_INTERFACES(DecoderFactory) public: - bool supports(const QString &source) const; bool canDecode(QIODevice *input) const; const DecoderProperties properties() const; Decoder *create(const QString &, QIODevice *); -- cgit v1.2.3-13-gbd6f