a few suckin' bugs...
git-svn-id: http://yolanda.mister-muffin.de/svn@225 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
6af789774a
commit
474ce11a60
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue