Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv19982

Modified Files:
        osd.py 
Log Message:
cache all thumbnails when config.OVERLAY_DIR_STORE_THUMBNAILS

Index: osd.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/osd.py,v
retrieving revision 1.112
retrieving revision 1.113
diff -C2 -d -r1.112 -r1.113
*** osd.py      30 Dec 2003 15:29:04 -0000      1.112
--- osd.py      31 Dec 2003 16:41:43 -0000      1.113
***************
*** 11,14 ****
--- 11,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.113  2003/12/31 16:41:43  dischi
+ # cache all thumbnails when config.OVERLAY_DIR_STORE_THUMBNAILS
+ #
  # Revision 1.112  2003/12/30 15:29:04  dischi
  # support for OVERLAY_DIR_STORE_THUMBNAILS
***************
*** 1142,1146 ****
              if thumbnail:
                  sinfo = os.stat(filename)
!                 if sinfo[stat.ST_SIZE] > 10000:
                      if config.OVERLAY_DIR_STORE_THUMBNAILS:
                          thumb = vfs.getoverlay(filename + '.raw')
--- 1145,1149 ----
              if thumbnail:
                  sinfo = os.stat(filename)
!                 if config.OVERLAY_DIR_STORE_THUMBNAILS or sinfo[stat.ST_SIZE] > 
10000:
                      if config.OVERLAY_DIR_STORE_THUMBNAILS:
                          thumb = vfs.getoverlay(filename + '.raw')
***************
*** 1150,1157 ****
                                                
util.hexify(md5.new(filename).digest())))
                      data = None
!                     if os.path.isfile(thumb) and \
!                            os.stat(thumb)[stat.ST_MTIME] > sinfo[stat.ST_MTIME]:
!                         data = util.read_pickle(thumb)
!                             
                      if not data:
                          f=open(filename, 'rb')
--- 1153,1163 ----
                                                
util.hexify(md5.new(filename).digest())))
                      data = None
! 
!                     try:
!                         if os.stat(thumb)[stat.ST_MTIME] > sinfo[stat.ST_MTIME]:
!                             data = util.read_pickle(thumb)
!                     except OSError:
!                         pass
!                     
                      if not data:
                          f=open(filename, 'rb')




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to