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 08578da8e8556c502a9cbdff8d5f08f414b2a567..ecc3ff17df1436d8682ede4d5a5597797130cc2c 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!