diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-20 23:18:23 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-04-20 23:19:18 (GMT) |
commit | 88f2a5f3c2834f508a19f7cc8a4ec5a8ea2b0916 (patch) | |
tree | 2760f47677ca16dff8b0344572f3da8560849738 /utils.py | |
parent | 2e08c002759d09e31d13b96de02490d467da4e16 (diff) |
Rewrite glive.py
* Use uuid and do not md5 video files
* Fallback to ximagesink if xvimagesink is unaccessible
* Use one pass for encodings
* Remove glivex and add thumb_play to glive
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -6,7 +6,6 @@ import statvfs import cairo import gc import gtk -from hashlib import md5 import time from time import strftime @@ -55,15 +54,6 @@ def getUniqueFilepath( path, i ): return os.path.abspath( newPath ) -def md5File( filepath ): - md = md5() - f = file( filepath, 'rb' ) - md.update( f.read() ) - digest = md.hexdigest() - hash = util.printable_hash(digest) - return hash - - def generateThumbnail( pixbuf, scale, thumbw, thumbh ): #need to generate thumbnail version here thumbImg = cairo.ImageSurface(cairo.FORMAT_ARGB32, thumbw, thumbh) |