fix 27b5d1952926a7bf7cd1f1d35305c7dde1c4a195 "Thread.critical does not exist in ruby...
authorGuillaume Cottenceau <gcottenc@gmail.com>
Mon, 1 Nov 2010 22:46:20 +0000 (23:46 +0100)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Mon, 1 Nov 2010 22:46:20 +0000 (23:46 +0100)
lib/booh/booh-lib.rb

index 08578da..ecc3ff1 100644 (file)
@@ -350,6 +350,7 @@ module Booh
         #- it's not possible to specify a basename for the output jpeg file with mplayer (file will be named 00000001.jpg); as this can
         #- be called from multiple threads, we must come up with a unique directory where to put the file
         tmpfile = Tempfile.new("boohvideotmp")
+        tmpdirname = nil
         $video_thumbnail_directory_lock.synchronize {
             tmpdirname = tmpfile.path
             tmpfile.close!