use mplayer -slave to allow backgrounded booh to work properly
authorgc <gc>
Sat, 31 May 2008 14:13:36 +0000 (14:13 +0000)
committergc <gc>
Sat, 31 May 2008 14:13:36 +0000 (14:13 +0000)
lib/booh/booh-lib.rb

index c469fe1..b6b630a 100644 (file)
@@ -338,9 +338,8 @@ module Booh
         ensure
             Thread.critical = false
         end
-        cmd = "mplayer '#{orig}' -nosound -vo jpeg:outdir='#{tmpdirname}' -frames 1 -ss #{seektime} >/dev/null 2>/dev/null"
-        msg 2, cmd
-        system cmd
+        cmd = "mplayer '#{orig}' -nosound -vo jpeg:outdir='#{tmpdirname}' -frames 1 -ss #{seektime} -slave >/dev/null 2>/dev/null"
+        sys(cmd)
         if ! File.exists?("#{tmpdirname}/00000001.jpg")
             msg 0, _("specified seektime too large? that may also be another probleme. try another value.")
             Dir.rmdir(tmpdirname)