force re-render after upload so all mp4s can be viewed on mobile

This commit is contained in:
Chris
2018-10-24 09:08:45 +02:00
parent 8586775116
commit e57360bcfc

View File

@@ -509,7 +509,7 @@ class PictshareModel extends Model
unlink($tempfile);
//re-render new mp4 by calling the re-encode script
if($type=='mp4' && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
if($type=='mp4')
{
system("nohup php ".ROOT.DS.'tools'.DS.'re-encode_mp4.php force '.$hash." > /dev/null 2> /dev/null &");
}