From 463f4e95cff0e100b4c8c8b5378cfe1b2604c138 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 8 Sep 2019 11:49:28 +0000 Subject: fixed possible regressions git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9068 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/archive/decoderarchivefactory.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/Input/archive/decoderarchivefactory.cpp') diff --git a/src/plugins/Input/archive/decoderarchivefactory.cpp b/src/plugins/Input/archive/decoderarchivefactory.cpp index 4d569defd..e96bbf007 100644 --- a/src/plugins/Input/archive/decoderarchivefactory.cpp +++ b/src/plugins/Input/archive/decoderarchivefactory.cpp @@ -95,11 +95,11 @@ QList DecoderArchiveFactory::createPlayList(const QString &path, Tr } //is this file supported by qmmp? - QList filtered = Decoder::findByFileExtension(filePath); - for(DecoderFactory *f : qAsConst(filtered)) + QList filtered; + for(DecoderFactory *f : Decoder::findByFileExtension(filePath)) { - if(f->properties().noInput) - filtered.removeAll(f); //remove all factories without streaming input + if(!f->properties().noInput) + filtered << f; //add all factories with streaming input } if(!filtered.isEmpty()) -- cgit v1.2.3-13-gbd6f