fix(video): prevent encoder probing with no active displays (#3592)

This commit is contained in:
Lukas Senionis
2025-01-27 01:21:15 +02:00
committed by GitHub
parent a5c791658e
commit 0631472533
5 changed files with 37 additions and 6 deletions

View File

@@ -2550,6 +2550,11 @@ namespace video {
}
int probe_encoders() {
if (!display_device::is_any_device_active()) {
BOOST_LOG(error) << "No display devices are active at the moment! Cannot probe encoders as this could break Sunshine.";
return -1;
}
auto encoder_list = encoders;
// If we already have a good encoder, check to see if another probe is required