fix ffmpeg snapshot template injection

This commit is contained in:
YuLi
2026-07-24 15:36:38 -07:00
parent ac64e3314b
commit 36bad5ccf2
2 changed files with 29 additions and 2 deletions

View File

@@ -888,8 +888,8 @@ void installWebApi() {
continue;
#endif
}
if (pr.first == FFmpeg::kBin) {
WarnL << "Configuration named " << FFmpeg::kBin << " is not allowed to be set by setServerConfig api.";
if (pr.first == FFmpeg::kBin || pr.first == FFmpeg::kSnap) {
WarnL << "Configuration named " << pr.first << " is not allowed to be set by setServerConfig api.";
continue;
}
if (ini[pr.first] == pr.second) {