From c512c1a02e40c8ee0432d1bae73d31358090c4b1 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 21 Nov 2020 21:54:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=ADvhost=E6=97=B6=EF=BC=8Cm3u8?= =?UTF-8?q?=E4=B8=ADts=E6=96=87=E4=BB=B6=E4=B8=8D=E6=8C=87=E5=AE=9Avhost?= =?UTF-8?q?=EF=BC=9A#560?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Record/Recorder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Record/Recorder.cpp b/src/Record/Recorder.cpp index b7ccd05f..e678715b 100644 --- a/src/Record/Recorder.cpp +++ b/src/Record/Recorder.cpp @@ -60,7 +60,8 @@ std::shared_ptr Recorder::createRecorder(type type, const st switch (type) { case Recorder::type_hls: { #if defined(ENABLE_HLS) - auto ret = std::make_shared(path, string(VHOST_KEY) + "=" + vhost); + GET_CONFIG(bool, enable_vhost, General::kEnableVhost); + auto ret = std::make_shared(path, enable_vhost ? string(VHOST_KEY) + "=" + vhost : ""); ret->setMediaSource(vhost, app, stream_id); return ret; #endif