修复ws-flv/fmp4/ts播放异常的bug (#4553)

修复提交 "8b5f313284ee876f3627ab4a2eb6460072f12fd1" 引入的bug
This commit is contained in:
xia-chu
2025-11-23 19:22:59 +08:00
parent 021f09e62b
commit 52b55ded97

View File

@@ -358,7 +358,7 @@ bool HttpSession::checkLiveStream(const string &schema, const string &url_suffix
Broadcast::AuthInvoker invoker = [weak_self, onRes](const string &err) {
if (auto strong_self = weak_self.lock()) {
strong_self->async([onRes, err]() { onRes(err); });
strong_self->async([onRes, err]() { onRes(err); }, false);
}
};
@@ -366,7 +366,7 @@ bool HttpSession::checkLiveStream(const string &schema, const string &url_suffix
if (!flag) {
// 该事件无人监听,默认不鉴权 [AUTO-TRANSLATED:e1fbc6ae]
// No one is listening to this event, no authentication by default
onRes("");
invoker("");
}
return true;
}