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/decoder_archive.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/Input/archive/decoder_archive.cpp') diff --git a/src/plugins/Input/archive/decoder_archive.cpp b/src/plugins/Input/archive/decoder_archive.cpp index 118cb49aa..1c0dff1f4 100644 --- a/src/plugins/Input/archive/decoder_archive.cpp +++ b/src/plugins/Input/archive/decoder_archive.cpp @@ -59,11 +59,11 @@ bool DecoderArchive::initialize() } //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