Commit c512c1a0 by xiongziliang

关闭vhost时,m3u8中ts文件不指定vhost:#560

parent 1cc3add9
...@@ -60,7 +60,8 @@ std::shared_ptr<MediaSinkInterface> Recorder::createRecorder(type type, const st ...@@ -60,7 +60,8 @@ std::shared_ptr<MediaSinkInterface> Recorder::createRecorder(type type, const st
switch (type) { switch (type) {
case Recorder::type_hls: { case Recorder::type_hls: {
#if defined(ENABLE_HLS) #if defined(ENABLE_HLS)
auto ret = std::make_shared<HlsRecorder>(path, string(VHOST_KEY) + "=" + vhost); GET_CONFIG(bool, enable_vhost, General::kEnableVhost);
auto ret = std::make_shared<HlsRecorder>(path, enable_vhost ? string(VHOST_KEY) + "=" + vhost : "");
ret->setMediaSource(vhost, app, stream_id); ret->setMediaSource(vhost, app, stream_id);
return ret; return ret;
#endif #endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论