mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
禁止通过setServerConfig接口修改ffmpeg.bin配置选项
This commit is contained in:
parent
098046cb1d
commit
706c63c64b
@ -20,6 +20,7 @@
|
||||
|
||||
namespace FFmpeg {
|
||||
extern const std::string kSnap;
|
||||
extern const std::string kBin;
|
||||
}
|
||||
|
||||
class FFmpegSnap {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user