admin: device is not file (fix #577)

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/579/head
Varun Patil 2023-04-17 09:31:54 -07:00
parent b32fbbc8df
commit 475d6f69cd
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class OtherController extends GenericApiController
// Check for VA-API device
$devPath = '/dev/dri/renderD128';
if (!is_file($devPath)) {
if (!file_exists($devPath)) {
$status['vaapi_dev'] = 'not_found';
} elseif (!is_readable($devPath)) {
$status['vaapi_dev'] = 'not_readable';