fix the format to unix without x

pull/133/head
winlin 11 years ago
parent 235e3cc120
commit e3e0db9bb1

@ -17,6 +17,13 @@ vhost removed.vhost.com {
# default: on
enabled off;
}
# the vhost with hls disabled.
vhost no-hls.vhost.com {
# whether the hls is enabled.
# if off, donot write hls(ts and m3u8) when publish.
# default: on
hls off;
}
# the vhost for min delay, donot cache any stream.
vhost min.delay.com {
# whether cache the last gop.

@ -562,6 +562,17 @@ SrsConfDirective* SrsConfig::get_gop_cache(std::string vhost)
return conf->get("gop_cache");
}
SrsConfDirective* SrsConfig::get_hls(std::string vhost)
{
SrsConfDirective* conf = get_vhost(vhost);
if (!conf) {
return NULL;
}
return conf->get("hls");
}
SrsConfDirective* SrsConfig::get_refer(std::string vhost)
{
SrsConfDirective* conf = get_vhost(vhost);

@ -109,6 +109,7 @@ public:
virtual int parse_options(int argc, char** argv);
virtual SrsConfDirective* get_vhost(std::string vhost);
virtual SrsConfDirective* get_gop_cache(std::string vhost);
virtual SrsConfDirective* get_hls(std::string vhost);
virtual SrsConfDirective* get_refer(std::string vhost);
virtual SrsConfDirective* get_refer_play(std::string vhost);
virtual SrsConfDirective* get_refer_publish(std::string vhost);

Loading…
Cancel
Save