1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix #293, support rtmp remux to http flv live stream.

This commit is contained in:
winlin 2015-01-18 20:07:54 +08:00
parent 53d9faf395
commit 3b853a6dbd
5 changed files with 53 additions and 9 deletions

View file

@ -402,6 +402,7 @@ int SrsGoHttpFileServer::copy(ISrsGoHttpResponseWriter* w, SrsFileReader* fs, Sr
SrsGoHttpMuxEntry::SrsGoHttpMuxEntry()
{
enabled = true;
explicit_match = false;
handler = NULL;
}
@ -572,6 +573,10 @@ int SrsGoHttpServeMux::match(SrsHttpMessage* r, ISrsGoHttpHandler** ph)
std::string pattern = it->first;
SrsGoHttpMuxEntry* entry = it->second;
if (!entry->enabled) {
continue;
}
if (!path_match(pattern, path)) {
continue;
}