From 46ce8fad095a6f3227fde30116623250a14bac0b Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 1 Nov 2010 23:46:20 +0100 Subject: [PATCH] fix 27b5d1952926a7bf7cd1f1d35305c7dde1c4a195 "Thread.critical does not exist in ruby 1.9 anymore" --- lib/booh/booh-lib.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/booh/booh-lib.rb b/lib/booh/booh-lib.rb index 08578da..ecc3ff1 100644 --- a/lib/booh/booh-lib.rb +++ b/lib/booh/booh-lib.rb @@ -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! -- 2.30.4