From 4cf09bdaa12873751cf520ec8d20c3a869cb0bac Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 9 Feb 2018 14:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=9A=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MediaFile/MediaRecorder.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/MediaFile/MediaRecorder.cpp b/src/MediaFile/MediaRecorder.cpp index f714a893..c29ea74c 100644 --- a/src/MediaFile/MediaRecorder.cpp +++ b/src/MediaFile/MediaRecorder.cpp @@ -72,9 +72,15 @@ MediaRecorder::MediaRecorder(const string &strVhost_tmp, trim(key); if (key == VHOST_KEY) { hlsPrefixVhost.replace(pos_start, pos_end - pos_start + 1, strVhost); + } else{ + //不识别的环境变量 + break; } + }else{ + //没有更多环境变量了 + break; } - } while (0); + } while (true); m_hlsMaker.reset(new HLSMaker(hlsPath + "/" + strVhost + "/" + strApp + "/" + strId + "/hls.m3u8", hlsPrefixVhost + "/" + strApp + "/" + strId + "/", hlsBufSize, hlsDuration, hlsNum));