From 5e729d6153d1b5629304e3a33d1a47805f78b356 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 23 Apr 2022 18:40:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BA=AF=E6=BA=90=E9=9B=86=E7=BE=A4=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E6=94=AF=E6=8C=81=E8=BE=B9=E6=B2=BF=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E9=80=89=E6=8B=A9=E5=BC=80=E5=90=AF=E8=BD=AChls:=20#1?= =?UTF-8?q?588?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebHook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/WebHook.cpp b/server/WebHook.cpp index b1313288..86e7c592 100755 --- a/server/WebHook.cpp +++ b/server/WebHook.cpp @@ -245,7 +245,7 @@ static void pullStreamFromOrigin(const vector& urls, size_t index, size_ InfoL << "pull stream from origin, failed_cnt: " << failed_cnt << ", timeout_sec: " << timeout_sec << ", url: " << url; ProtocolOption option; - option.enable_hls = args._schema == HLS_SCHEMA; + option.enable_hls = option.enable_hls || (args._schema == HLS_SCHEMA); option.enable_mp4 = false; addStreamProxy(args._vhost, args._app, args._streamid, url, -1, option, Rtsp::RTP_TCP, timeout_sec,