mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code:优化edge模式回源播放线程启动流程
This commit is contained in:
parent
5f77724021
commit
a5a9f7c8c5
4 changed files with 10 additions and 26 deletions
|
@ -1210,15 +1210,6 @@ int SrsHttpStreamServer::hijack(ISrsHttpMessage* request, ISrsHttpHandler** ph)
|
|||
srs_trace("hstrs: source url=%s, is_edge=%d, source_id=%d[%d]",
|
||||
r->get_stream_url().c_str(), vhost_is_edge, s->source_id(), s->source_id());
|
||||
|
||||
// TODO: FIXME: disconnect when all connection closed.
|
||||
if (vhost_is_edge) {
|
||||
// notice edge to start for the first client.
|
||||
if ((ret = s->on_edge_start_play()) != ERROR_SUCCESS) {
|
||||
srs_error("notice edge start play stream failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue