[mythtv-commits] Ticket #9523: [PATCH] MythGallery hogs cpu when scanning folders with non-image files.

MythTV noreply at mythtv.org
Fri Jan 28 12:24:55 UTC 2011


#9523: [PATCH] MythGallery hogs cpu when scanning folders with non-image files.
-------------------------------------------------+-------------------------
     Reporter:  Lawrence Rust <lvr@…>            |      Owner:  beirdo
         Type:  Bug Report                       |     Status:  new
     Priority:  minor                            |  Milestone:  unknown
    Component:  Plugin - MythGallery             |    Version:  Trunk Head
     Severity:  medium                           |   Keywords:
Ticket locked:  0                                |
-------------------------------------------------+-------------------------
 If I set MythGallery to read images from a folder containing a mix of
 images and other files then the UI hangs for a long time while it's trying
 to detect the format of the non-image files.  This is a feature of the Qt
 QImageReader class which outputs many messages of the form:
 {{{
 Cannot decode file /home/...
 }}}

 while it attempts to analyse the format of these files.  A solution is to
 call setAutoDetectImageFormat(false) before calling canRead() so that only
 files with known image extensions (e.g. .jpeg .gif etc) are tested.

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9523>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list