Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1022

Modified Files:
        mediainfo.py 
Log Message:
prevent crash for bad pickle results

Index: mediainfo.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/mediainfo.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -d -r1.50 -r1.51
*** mediainfo.py        29 Jun 2004 18:07:03 -0000      1.50
--- mediainfo.py        8 Jul 2004 14:37:47 -0000       1.51
***************
*** 11,14 ****
--- 11,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.51  2004/07/08 14:37:47  dischi
+ # prevent crash for bad pickle results
+ #
  # Revision 1.50  2004/06/29 18:07:03  dischi
  # reload cache if cache helper runs while running freevo
***************
*** 23,50 ****
  # delete cache on mmpython update
  #
- # Revision 1.46  2004/05/31 15:58:26  dischi
- # do not cache bad info
- #
- # Revision 1.45  2004/05/28 15:53:46  dischi
- # add chapters support
- #
- # Revision 1.44  2004/05/20 15:53:49  dischi
- # prevent a crash
- #
- # Revision 1.43  2004/05/02 11:46:13  dischi
- # make it possible to turn off image caching
- #
- # Revision 1.42  2004/04/11 08:39:54  dischi
- # warn about old cache
- #
- # Revision 1.41  2004/03/28 03:14:53  krister
- # oops
- #
- # Revision 1.40  2004/03/28 02:46:00  krister
- # Fixed a typo
- #
- # Revision 1.39  2004/03/27 17:44:39  krister
- # Fixed divide by zero bug.
- #
  # -----------------------------------------------------------------------
  # Freevo - A Home Theater PC framework
--- 26,29 ----
***************
*** 152,155 ****
--- 131,137 ----
              if os.path.isfile(cachefile):
                  self.current_objects = util.read_pickle(cachefile)
+                 # maybe the cache file is broken and read_pickle returns None
+                 if not self.current_objects:
+                     self.current_objects = {}
              else:
                  self.current_objects = {}



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to