a few suckin' bugs...

git-svn-id: http://yolanda.mister-muffin.de/svn@225 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2007-12-28 17:18:44 +00:00
parent 6af789774a
commit 474ce11a60
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ while(1)
if($id) 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/) if($info =~ /ignoring/)
{ {
@ -82,7 +82,7 @@ while(1)
else else
{ {
$sha = new Digest::SHA(256); $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; $sha = $sha->hexdigest;
#check if this hash is already in database #check if this hash is already in database

View file

@ -41,7 +41,7 @@ if($userinfo->{'id'} && $query->param("DC.Title") &&
#save uploaded file into temppath #save uploaded file into temppath
$upload_filehandle = $query->upload("file"); $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> ) while ( <$upload_filehandle> )
{ {
print TEMPFILE; print TEMPFILE;