vcpkg/ports/zlmediakit/fix-core.patch
2024-07-09 13:20:47 -04:00

21 lines
798 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

diff --git a/server/WebApi.cpp b/server/WebApi.cpp
index 5fbe4e19..1ba30b58 100755
--- a/server/WebApi.cpp
+++ b/server/WebApi.cpp
@@ -1872,6 +1872,7 @@ void installWebApi() {
});
#endif
+#if ENABLE_MP4
api_regist("/index/api/loadMP4File", [](API_ARGS_MAP) {
CHECK_SECRET();
CHECK_ARGS("vhost", "app", "stream", "file_path");
@@ -1890,6 +1891,7 @@ void installWebApi() {
// sample_ms设置为0从配置文件加载file_repeat可以指定如果配置文件也指定循环解复用那么强制开启
reader->startReadMP4(0, true, allArgs["file_repeat"]);
});
+#endif
GET_CONFIG_FUNC(std::set<std::string>, download_roots, API::kDownloadRoot, [](const string &str) -> std::set<std::string> {
std::set<std::string> ret;