Add option to ignore encoder probe failure

This commit is contained in:
Yukino Song
2025-07-16 01:51:16 +08:00
parent fae6da3fb7
commit 1fd920ef1d
7 changed files with 21 additions and 1 deletions

View File

@@ -353,7 +353,11 @@ namespace proc {
// due to hotplugging, driver crash, primary monitor change,
// or any number of other factors).
if (rtsp_stream::session_count() == 0 && video::probe_encoders()) {
return 503;
if (config::video.ignore_encoder_probe_failure) {
BOOST_LOG(warning) << "Encoder probe failed, but continuing due to user configuration.";
} else {
return 503;
}
}
std::string fps_str;