diff --git a/server/FFmpegSource.h b/server/FFmpegSource.h index 68e3c440..8efb7ced 100644 --- a/server/FFmpegSource.h +++ b/server/FFmpegSource.h @@ -20,6 +20,7 @@ namespace FFmpeg { extern const std::string kSnap; + extern const std::string kBin; } class FFmpegSnap { diff --git a/server/WebApi.cpp b/server/WebApi.cpp index fe56d404..04d69246 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -657,6 +657,10 @@ void installWebApi() { continue; #endif } + if (pr.first == FFmpeg::kBin) { + WarnL << "Configuration named " << FFmpeg::kBin << " is not allowed to be set by setServerConfig api."; + continue; + } if (ini[pr.first] == pr.second) { continue; }