prevent fatal php crash when maxfps is '' but forcing it to 0

pull/3971/head
Isaac Connor 2024-09-18 09:10:43 -04:00
parent 7c8738e976
commit b5f393d960
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ case CMD_SEEK :
1000000*( $_REQUEST['offset']-intval($_REQUEST['offset'])));
break;
case CMD_MAXFPS :
if (!floatval($_REQUEST['maxfps'])) $_REQUEST['maxfps'] = 0;
ZM\Debug('Maxfps to '.$_REQUEST['maxfps']);
# Pack int two 32 bit integers instead of trying to deal with floats
$msg = pack('lcNN', MSG_CMD, $_REQUEST['command'],