Skip to content

Commit d1ab62d

Browse files
Lawrence RustBeirdo
authored andcommitted
Make mythgallery's thumb generator not auto-detect
The QImageReader autodetection seems to be overkill for what we need here. By turning this off, only registered image extensions will be tried. This will significantly speed up scanning directories with mixed content in them. Hopefully, this will not adversely affect "normal" directories of only images. Fixes #9523 Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
1 parent ef0c671 commit d1ab62d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mythplugins/mythgallery/mythgallery/thumbgenerator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ void ThumbGenerator::loadDir(QImage& image, const QFileInfo& fi)
243243
{
244244
f = &(*it);
245245
QImageReader testread(f->absoluteFilePath());
246+
testread.setAutoDetectImageFormat(false);
246247
if (testread.canRead())
247248
{
248249
found = true;

0 commit comments

Comments
 (0)