Cancel stale playback probes and verify Linux QSV support
This commit is contained in:
@ -82,7 +82,7 @@ router.get('/hw-info', async (req, res) => {
|
||||
|
||||
// If not yet detected, run detection now
|
||||
if (!capabilities) {
|
||||
capabilities = await hwDetect.detect();
|
||||
capabilities = await hwDetect.detect(req.app.locals.ffmpegPath || 'ffmpeg');
|
||||
}
|
||||
|
||||
res.json(capabilities);
|
||||
@ -99,7 +99,7 @@ router.get('/hw-info', async (req, res) => {
|
||||
router.post('/hw-info/refresh', async (req, res) => {
|
||||
try {
|
||||
const hwDetect = require('../services/hwDetect');
|
||||
const capabilities = await hwDetect.refresh();
|
||||
const capabilities = await hwDetect.refresh(req.app.locals.ffmpegPath || 'ffmpeg');
|
||||
res.json(capabilities);
|
||||
} catch (err) {
|
||||
console.error('Error refreshing hardware info:', err);
|
||||
|
||||
Reference in New Issue
Block a user