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,