From 474ce11a60416c90da58f53b2911fc81158ba2d7 Mon Sep 17 00:00:00 2001 From: josch Date: Fri, 28 Dec 2007 17:18:44 +0000 Subject: [PATCH] a few suckin' bugs... git-svn-id: http://yolanda.mister-muffin.de/svn@225 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/tools/daemon.pl | 4 ++-- trunk/uploader.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/tools/daemon.pl b/trunk/tools/daemon.pl index 2342600..f20476c 100755 --- a/trunk/tools/daemon.pl +++ b/trunk/tools/daemon.pl @@ -53,7 +53,7 @@ while(1) if($id) { - $info = `ffplay -stats -an -vn -nodisp $root/tmp/$id 2>&1`; + $info = `export SDL_VIDEODRIVER="dummy"; ffplay -stats -an -vn -nodisp $root/tmp/$id 2>&1`; if($info =~ /ignoring/) { @@ -82,7 +82,7 @@ while(1) else { $sha = new Digest::SHA(256); - $sha->addfile("$root/tmp/$id"); + $sha->addfile("$root/tmp/$id") or die "cannot open $root/tmp/$id"; $sha = $sha->hexdigest; #check if this hash is already in database diff --git a/trunk/uploader.pl b/trunk/uploader.pl index 3ccd6bb..5be9ee1 100644 --- a/trunk/uploader.pl +++ b/trunk/uploader.pl @@ -41,7 +41,7 @@ if($userinfo->{'id'} && $query->param("DC.Title") && #save uploaded file into temppath $upload_filehandle = $query->upload("file"); - open(TEMPFILE, ">$root/tmp/$id") or die "cannot open"; + open(TEMPFILE, ">$root/tmp/$id") or die "cannot open $root/tmp/$id"; while ( <$upload_filehandle> ) { print TEMPFILE;