Skip to content

A self-hosted media server and file management system

fix: validateQsvVaapi requires a device path even though a branch allows for it to be empty

aminnausinb151428b3232
diff --git a/app/Services/Hardware/HardwareDetectionService.php b/app/Services/Hardware/HardwareDetectionService.php
index c8c12dcd..c4cbd7d7 100644
--- a/app/Services/Hardware/HardwareDetectionService.php
+++ b/app/Services/Hardware/HardwareDetectionService.php
@@ -115,7 +115,7 @@ class HardwareDetectionService {
/**
* Linux QSV detection using vaapi and a specific device path
*/
- private function validateQsvVaapi(string $devicePath): bool {
+ private function validateQsvVaapi(?string $devicePath): bool {
if (! $devicePath) {
return false;
}